Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for get_valid_exclude_unset (0.15 sec)

  1. tests/test_serialize_response_model.py

            "k3": Item(aliased_name="baz", price=2.0, owner_ids=[1, 2, 3]),
        }
    
    
    @app.get(
        "/items/valid-exclude-unset", response_model=Item, response_model_exclude_unset=True
    )
    def get_valid_exclude_unset():
        return Item(aliased_name="valid", price=1.0)
    
    
    @app.get(
        "/items/coerce-exclude-unset",
        response_model=Item,
        response_model_exclude_unset=True,
    )
    def get_coerce_exclude_unset():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top