mirror of https://github.com/tiangolo/fastapi.git
Apply suggestion from @YuriiMotov
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
This commit is contained in:
parent
feba7b1cb4
commit
6b2f872316
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue