Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for simple_exclude (0.12 sec)

  1. tests/test_response_model_include_exclude.py

            },
            "baz": "simple_include_dict model2 baz",
        }
    
    
    @app.get(
        "/simple_exclude",
        response_model=Model2,
        response_model_exclude={"ref": {"bar"}},
    )
    def simple_exclude():
        return Model2(
            ref=Model1(foo="simple_exclude model foo", bar="simple_exclude model bar"),
            baz="simple_exclude model2 baz",
        )
    
    
    @app.get(
        "/simple_exclude_dict",
        response_model=Model2,
    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