- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ModelNoAlias (0.08 sec)
-
tests/test_response_by_alias.py
return [{"alias": "Foo"}, {"alias": "Bar"}] @app.get("/no-alias/dict", response_model=ModelNoAlias) 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"}]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.1K bytes - Viewed (0)