Glossary: Building APIs with FastAPI
BaseModel
The Pydantic class you inherit from to describe data. You write a type hint for each field, and the model validates and converts values when an object is created.
Glossary: Building APIs with FastAPI
The Pydantic class you inherit from to describe data. You write a type hint for each field, and the model validates and converts values when an object is created.