Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for simple_include_dict (0.08 sec)

  1. tests/test_response_model_include_exclude.py

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