File size: 313 Bytes
6020013
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from pydantic import BaseModel, HttpUrl

from typing import Sequence


class MyDataModel(BaseModel):
    id: int
    text: str
    description: str


class MyDataSearchResults(BaseModel):
    results: Sequence[MyDataModel]


class CreateMyDataModelEntity(BaseModel):
    id: int
    text: str
    description: str