]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
🐛 Fix OpenAPI generation when using callbacks with routers including Pydantic models...
authorNik <sidnev.nick@gmail.com>
Fri, 12 Jun 2020 20:35:59 +0000 (23:35 +0300)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 20:35:59 +0000 (22:35 +0200)
commitd66d8379c0a03319da39b80046093131f4cc9f61
treef3603a9c12a9c161c01c0224d6826e090de8b3e4
parent5a00467951a243632a4bf3d9a4a6d53b8f273d99
🐛 Fix OpenAPI generation when using callbacks with routers including Pydantic models (#1322)

* drop model class from additional responses when generating openapi

* ♻️ Copy response to be mutated early in get_openapi_path

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
fastapi/openapi/utils.py
tests/test_additional_responses_custom_model_in_callback.py [new file with mode: 0644]