Skip to content

Glossary: Building APIs with FastAPI

extra="forbid"

Also written: ConfigDict, model_config

A Pydantic model setting that rejects unknown fields instead of silently ignoring them. It catches typos such as `"prise"`.

Where the book teaches it

Related terms

BaseModelValidation