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

Avoid inclusion of empty definition dict #184

Merged
merged 1 commit into from Mar 22, 2018
Merged

Avoid inclusion of empty definition dict #184

merged 1 commit into from Mar 22, 2018

Conversation

mmichaels01
Copy link
Contributor

When using the marshmallow_apispec plugins for flasgger, I discovered that there was an empty definition dictionary in many places it shouldn't be, such as a path parameter. This was causing errors when attempting to validate the generated swagger spec.

This small change should prevent the inclusion of a (potentially) empty definition dictionary at every level of hierarchy, which was causing invalid specs to be generated.

This prevents the inclusion of a (potentially) empty definition dictionary at every level of hierarchy, which was causing invalid specs to be generated.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 90.403% when pulling 266f29d on mmichaels01:master into 49dc420 on rochacbruno:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 90.403% when pulling 266f29d on mmichaels01:master into 49dc420 on rochacbruno:master.

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

3 participants