Skip to content

Glossary: Building APIs with FastAPI

Nested model

Also written: nested models

A model whose field is another model or a list of them, such as a quote holding a list of lines. Every inner item is validated too, and an error's `loc` shows its position.

Where the book teaches it

Related terms

BaseModelValidation