Model data validator
from base_model.base_model import BaseModel
class PrimitiveFieldsModel(BaseModel):
id: int
name: str
active: bool
size: float
from datetime import datetime, date, time
from base_model.base_model import BaseModel
class TimeFieldsModel(BaseModel):
birthday: date
register: datetime
alarm: time
from typing import List
from base_model.base_model import BaseModel
class ListFieldsModel(BaseModel):
names: List[str]
ages: List[int]
enables: List[bool]