- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for no_alias_model (0.07 sec)
-
tests/test_response_by_alias.py
def no_alias_dict(): return {"name": "Foo"} @app.get("/no-alias/model", response_model=ModelNoAlias) def no_alias_model(): return ModelNoAlias(name="Foo") @app.get("/no-alias/list", response_model=List[ModelNoAlias]) def no_alias_list(): return [{"name": "Foo"}, {"name": "Bar"}] client = TestClient(app) def test_read_dict(): response = client.get("/dict")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.1K bytes - Viewed (0)