Skip to content

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.

Where the book teaches it

Related terms

PydanticValidationmodel_dump