From 3e3d38930efbf9cd60fa35fa8c94bd0f2bf25bb4 Mon Sep 17 00:00:00 2001 From: Alexander Li Date: Sun, 24 May 2026 04:00:37 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Use=20`Annotated`=20in=20i?= =?UTF-8?q?nline=20example=20in=20`docs/en/docs/tutorial/body-multiple-par?= =?UTF-8?q?ams.md`=20(#15591)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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: