diff --git a/docs/en/docs/tutorial/body.md b/docs/en/docs/tutorial/body.md index f7c2ae304..72ec94fe6 100644 --- a/docs/en/docs/tutorial/body.md +++ b/docs/en/docs/tutorial/body.md @@ -76,7 +76,7 @@ In this example: ```python class Item(BaseModel): - description: Optional[str] = None + description: str | None = None ``` Here, `description` can be omitted entirely in the request body.