From 5ffdaaeb6166f4607af2a1ff6a8bbd465bf9a9e9 Mon Sep 17 00:00:00 2001 From: Alexander Li Date: Sat, 23 May 2026 13:51:46 -0700 Subject: [PATCH] Use Annotated in Body - Multiple Parameters Tutorial Example The full example in the tutorial recommends and uses Annotated, but one line still uses the non-Annotated syntax. --- docs/en/docs/tutorial/body-multiple-params.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/docs/tutorial/body-multiple-params.md b/docs/en/docs/tutorial/body-multiple-params.md index cdef50ec38..e7f5c096cb 100644 --- a/docs/en/docs/tutorial/body-multiple-params.md +++ b/docs/en/docs/tutorial/body-multiple-params.md @@ -126,7 +126,7 @@ By default, **FastAPI** will then expect its body directly. But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`: ```Python -item: Item = Body(embed=True) +item: Annotated[Item, Body(embed=True)] ``` as in: