fix openapi schema

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-07-01 11:23:07 +02:00
parent 743d585faa
commit f4dd9bd063
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ def create_docs(app: FastAPI):
"dom_id": "#swagger-ui",
}
@app.get("/docs", include_in_schema=True) # override for the default fastapi swagger route
@app.get("/docs", include_in_schema=False) # override for the default fastapi swagger route
async def custom_swagger_html():
res = get_swagger_ui_html(
title=f'{app.title}: Swagger UI',
@@ -79,7 +79,7 @@ def create_docs(app: FastAPI):
def create_redocs(app: FastAPI):
@app.get("/redocs", include_in_schema=True) # override for the default fastapi redocs route
@app.get("/redocs", include_in_schema=False) # override for the default fastapi redocs route
async def custom_redoc_html():
res = get_redoc_html(
title=f'{app.title}: ReDoc',