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

Skip non-dict elements on resolve to avoid AttributeError #151

Merged
merged 2 commits into from Sep 6, 2017

Conversation

@yoichi
Copy link
Collaborator

commented Sep 2, 2017

Fix against "x-extension: value" cause following error:

>           for response in operation.get('responses', {}).values():
E           AttributeError: 'str' object has no attribute 'get'

apispec/ext/marshmallow/__init__.py:131: AttributeError

yoichi added some commits Sep 2, 2017

Skip non-dict elements on resolve to avoid AttributeError
>           for response in operation.get('responses', {}).values():
E           AttributeError: 'str' object has no attribute 'get'

apispec/ext/marshmallow/__init__.py:131: AttributeError

@sloria sloria merged commit d47bee0 into marshmallow-code:dev Sep 6, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@sloria

This comment has been minimized.

Copy link
Member

commented Sep 6, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.