From: Alexander Li Date: Sun, 24 May 2026 11:00:37 +0000 (-0700) Subject: ✏️ Use `Annotated` in inline example in `docs/en/docs/tutorial/body-multiple-params... X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3e3d38930efbf9cd60fa35fa8c94bd0f2bf25bb4;p=thirdparty%2Ffastapi%2Ffastapi.git ✏️ Use `Annotated` in inline example in `docs/en/docs/tutorial/body-multiple-params.md` (#15591) --- diff --git a/docs/en/docs/tutorial/body-multiple-params.md b/docs/en/docs/tutorial/body-multiple-params.md index cdef50ec3..e7f5c096c 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: