Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using current_app instead of self.app. #587

Open
phawks-coviance opened this issue Jul 19, 2023 · 0 comments
Open

Using current_app instead of self.app. #587

phawks-coviance opened this issue Jul 19, 2023 · 0 comments

Comments

@phawks-coviance
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant