Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for response_model_none_annotation_return_exact_dict (0.36 sec)

  1. tests/test_response_model_as_return_annotation.py

    def response_model_none_annotation_return_same_model() -> User:
        return User(name="John", surname="Doe")
    
    
    @app.get("/response_model_none-annotation-return_exact_dict", response_model=None)
    def response_model_none_annotation_return_exact_dict() -> User:
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/response_model_none-annotation-return_invalid_dict", response_model=None)
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Mon Aug 14 09:49:57 UTC 2023
    - 47.7K bytes
    - Viewed (0)
Back to top