This commit is contained in:
Kevyn Valladares 2026-02-06 19:08:43 +00:00 committed by GitHub
commit 8bca63e883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ For example, this model above declares a JSON "`object`" (or Python `dict`) like
}
```
/// note
By default, if the client sends extra fields in the request body that are not defined in the Pydantic model, they are ignored (not included in the model instance or in the response). This behavior comes from Pydantic's default handling of extra fields.
///
## Declare it as a parameter { #declare-it-as-a-parameter }
To add it to your *path operation*, declare it the same way you declared path and query parameters: