Pydantic · Class
BaseModel
BaseModel is the base class for Pydantic models. Define annotated fields on a subclass, then create instances to validate input and hold the resulting data.
Last updated
Syntax
class Model(BaseModel):
field: TypeIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
model_validatemodel_rebuildmodel_post_initmodel_parametrized_namecreate_modelGenerateJsonSchema