Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Mitake (0.15 sec)

  1. docs/en/docs/advanced/additional-responses.md

    Each of those response `dict`s can have a key `model`, containing a Pydantic model, just like `response_model`.
    
    **FastAPI** will take that model, generate its JSON Schema and include it in the correct place in OpenAPI.
    
    For example, to declare another response with a status code `404` and a Pydantic model `Message`, you can write:
    
    ```Python hl_lines="18  22"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 8.8K bytes
    - Viewed (0)
Back to top