mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-04 21:54:45 -04:00
Fix: adding additional_responses on .include_router()
This commit is contained in:
@@ -206,7 +206,7 @@ def get_openapi_path(
|
||||
},
|
||||
}
|
||||
for add_response_code, add_response in route.additional_responses.items():
|
||||
add_response_schema = {}
|
||||
add_response_schema: Dict[str, Any] = {}
|
||||
if (
|
||||
add_response.content_type or route.content_type.media_type
|
||||
) == "application/json" and add_response.schema_field is not None:
|
||||
|
||||
Reference in New Issue
Block a user