Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/11232/head
pre-commit-ci[bot] 1 year ago
committed by Vinícius Aguiar
parent
commit
8637d5801d
  1. 4
      fastapi/openapi/utils.py

4
fastapi/openapi/utils.py

@ -347,7 +347,9 @@ def get_openapi_path(
response_schema = {}
route_responses = {str(k): v for k, v in route.responses.items()}
if status_code not in route_responses or not route_responses.get(status_code, {}).get('superimpose'):
if status_code not in route_responses or not route_responses.get(
status_code, {}
).get("superimpose"):
operation.setdefault("responses", {}).setdefault(
status_code, {}
).setdefault("content", {}).setdefault(

Loading…
Cancel
Save