()
| 27 | |
| 28 | # custom_openapi |
| 29 | def custom_openapi(): |
| 30 | if application.openapi_schema: |
| 31 | return application.openapi_schema |
| 32 | openapi_schema = get_openapi( |
| 33 | description=settings.DESCRIPTION, |
| 34 | version=settings.VERSION, |
| 35 | title=settings.PROJECT_NAME, |
| 36 | routes=app.routes, |
| 37 | ) |
| 38 | openapi_schema["info"]["x-logo"] = { |
| 39 | "url": "/logo-teal.png" |
| 40 | } |
| 41 | application.openapi_schema = openapi_schema |
| 42 | return application.openapi_schema |
| 43 | |
| 44 | |
| 45 | application.openapi = custom_openapi |
nothing calls this directly
no outgoing calls
no test coverage detected