mirror of https://github.com/tiangolo/fastapi.git
Fix tutorial005_py310.py: make 'description' field required as intended
This commit is contained in:
parent
6b2f872316
commit
6c0d4110ae
|
|
@ -5,7 +5,7 @@ app = FastAPI()
|
|||
|
||||
|
||||
class Item(BaseModel):
|
||||
description: str | None = None
|
||||
description: str
|
||||
|
||||
|
||||
@app.post("/items/")
|
||||
|
|
|
|||
Loading…
Reference in New Issue