Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. docs/en/docs/tutorial/response-model.md

    If you added the return type annotation, tools and editors would complain with a (correct) error telling you that your function is returning a type (e.g. a dict) that is different from what you declared (e.g. a Pydantic model).
    
    In those cases, you can use the *path operation decorator* parameter `response_model` instead of the return type.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
Back to top