Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for mixed_dict (0.21 seconds)

  1. tests/test_response_model_include_exclude.py

            ),
        )
    
    
    @app.get(
        "/mixed_dict",
        response_model=Model3,
        response_model_include={"ref2", "name"},
        response_model_exclude={"ref2": {"baz"}},
    )
    def mixed_dict():
        return {
            "name": "mixed_dict model3 name",
            "age": 3,
            "ref2": {
                "ref": {"foo": "mixed_dict model foo", "bar": "mixed_dict model bar"},
                "baz": "mixed_dict model2 baz",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 4K bytes
    - Click Count (0)
Back to Top