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

Reset swagger attributes in case inheritance is used. #561

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rstcruzo
Copy link

If I'm using MethodView as a parent of several other views, the views without a yaml file get linked to another random view's yaml. Flasgger seems to be setting the swag_type and swag_type attributes of the parent MethodView.dispatch_request method and that's causing the issue. Resetting the attributes if the yaml file does not exist fixes the issue.

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

Successfully merging this pull request may close these issues.

None yet

1 participant