- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for get_invalid_none (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/en/docs/release-notes.md
class Item(BaseModel): name: str price: Optional[float] = None owner_ids: Optional[List[int]] = None app = FastAPI() @app.get("/items/invalidnone", response_model=Item) def get_invalid_none(): return None ``` ...calling the path `/items/invalidnone` will raise an error, because `None` is not a valid type for the `response_model` declared with `Item`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:06:15 GMT 2025 - 586.7K bytes - Click Count (0)