Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for no_response_model_annotation_return_invalid_model (0.38 sec)

  1. tests/test_response_model_as_return_annotation.py

    def no_response_model_annotation_return_invalid_dict() -> User:
        return {"name": "John"}
    
    
    @app.get("/no_response_model-annotation-return_invalid_model")
    def no_response_model_annotation_return_invalid_model() -> User:
        return Item(name="Foo", price=42.0)
    
    
    @app.get("/no_response_model-annotation-return_dict_with_extra_data")
    def no_response_model_annotation_return_dict_with_extra_data() -> User:
    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