Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for no_response_model_annotation_return_exact_dict (0.15 seconds)

  1. tests/test_response_model_as_return_annotation.py

    def no_response_model_annotation_return_same_model() -> User:
        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-annotation-return_exact_dict")
    def no_response_model_annotation_return_exact_dict() -> User:
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/no_response_model-annotation-return_invalid_dict")
    def no_response_model_annotation_return_invalid_dict() -> User:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 50.3K bytes
    - Click Count (0)
Back to Top