- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for validate0 (0.14 sec)
-
docs/en/docs/release-notes.md
app = FastAPI() @app.get("/items/invalidnone", response_model=Union[Item, None]) def get_invalid_none(): return None ``` This way the data will be correctly validated, you won't have an internal server error, and the documentation will also reflect that this *path operation* could return `None` (or `null` in JSON). ### Fixes
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 14 15:07:37 UTC 2024 - 395.4K bytes - Viewed (0)