In Redoc, you can open the Response samples using the "Expand all" button:
I want to put this as the default value via custom_openapi()
. Here is my code:
def custom_openapi():
if app.openapi_schema:
return app.openapi_schema
openapi_schema = get_openapi(
title=title,
version="1.0",
description=description,
routes=app.routes,
)
app.openapi_schema = openapi_schema
return app.openapi_schema
openapi_schema = custom_openapi()
How can I set it up?