You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to generate OpenAPI docs for a subset of the endpoints in my app. To do this, I am creating a second Flask instance with only the endpoints I want to document, and then passing that instance to Swagger. However, this does not work, because flasgger is calling Flask.current_app instead of using the app that I pass in to add routes to the documentation.
Is there any way around this? Can I force flasgger to use the app that I pass in, or tell an instance of Swagger to only document a subset of my endpoints?
The text was updated successfully, but these errors were encountered:
I am trying to generate OpenAPI docs for a subset of the endpoints in my app. To do this, I am creating a second
Flask
instance with only the endpoints I want to document, and then passing that instance toSwagger
. However, this does not work, because flasgger is callingFlask.current_app
instead of using the app that I pass in to add routes to the documentation.Is there any way around this? Can I force flasgger to use the app that I pass in, or tell an instance of
Swagger
to only document a subset of my endpoints?The text was updated successfully, but these errors were encountered: