Skip to content

Commit 2a82d5e

Browse files
author
redjax
committed
Fix: Don't show /docs HTML fix in docs route
1 parent a75f8d8 commit 2a82d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

red_utils/fastapi_utils/operations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def fix_api_docs(app: FastAPI = None):
4444
f"Invalid type for FastAPI app: ({type(app)}). Value must be of type FastAPI."
4545
)
4646

47-
@app.get(app.root_path + "/openapi.json")
47+
@app.get(app.root_path + "/openapi.json", include_in_schema=False)
4848
def custom_swagger_ui_html():
4949
return app.openapi()
5050

0 commit comments

Comments
 (0)