From 06230aa9817fdee01132cc31847435c0a7156ae2 Mon Sep 17 00:00:00 2001 From: Kevyn Valladares Date: Sat, 24 Jan 2026 11:45:10 -0700 Subject: [PATCH] Docs: clarify handling of extra fields in request body --- docs/en/docs/tutorial/body.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/en/docs/tutorial/body.md b/docs/en/docs/tutorial/body.md index 2d0dfcbb59..2a1dbc8328 100644 --- a/docs/en/docs/tutorial/body.md +++ b/docs/en/docs/tutorial/body.md @@ -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 `extra = "ignore"` configuration. + +/// + ## 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: