Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for simple_exclude_dict (0.09 sec)

  1. tests/test_response_model_include_exclude.py

        )
    
    
    @app.get(
        "/simple_exclude_dict",
        response_model=Model2,
        response_model_exclude={"ref": {"bar"}},
    )
    def simple_exclude_dict():
        return {
            "ref": {
                "foo": "simple_exclude_dict model foo",
                "bar": "simple_exclude_dict model bar",
            },
            "baz": "simple_exclude_dict model2 baz",
        }
    
    
    @app.get(
        "/mixed",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 4K bytes
    - Viewed (0)
Back to top