]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Add support for function return type annotations to declare the `response_model...
authorYurii Karabas <1998uriyyo@gmail.com>
Sat, 7 Jan 2023 13:45:48 +0000 (15:45 +0200)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 13:45:48 +0000 (17:45 +0400)
commitd0573f5713b0a8ce2dbb3d12d36a7fc34b89e2ff
treea6968d9da87460ca2336e3e66911b8f10d6c25b0
parentefc12c5cdbede6922a033a5234c70cb22c4d204a
✨ Add support for function return type annotations to declare the `response_model` (#1436)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
18 files changed:
docs/en/docs/tutorial/response-model.md
docs_src/response_model/tutorial001.py
docs_src/response_model/tutorial001_01.py [new file with mode: 0644]
docs_src/response_model/tutorial001_01_py310.py [new file with mode: 0644]
docs_src/response_model/tutorial001_01_py39.py [new file with mode: 0644]
docs_src/response_model/tutorial001_py310.py
docs_src/response_model/tutorial001_py39.py
docs_src/response_model/tutorial002.py
docs_src/response_model/tutorial002_py310.py
docs_src/response_model/tutorial003.py
docs_src/response_model/tutorial003_01.py [new file with mode: 0644]
docs_src/response_model/tutorial003_01_py310.py [new file with mode: 0644]
docs_src/response_model/tutorial003_py310.py
fastapi/applications.py
fastapi/dependencies/utils.py
fastapi/routing.py
tests/test_reponse_set_reponse_code_empty.py
tests/test_response_model_as_return_annotation.py [new file with mode: 0644]