Skip to content

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

Merged
sloria merged 2 commits intomarshmallow-code:devfrom
yoichi:skip-non-dict-on-resolve
Sep 6, 2017
Merged

Skip non-dict elements on resolve to avoid AttributeError#151
sloria merged 2 commits intomarshmallow-code:devfrom
yoichi:skip-non-dict-on-resolve

Conversation

@yoichi
Copy link
Copy Markdown
Collaborator

@yoichi yoichi 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

>           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
@sloria
Copy link
Copy Markdown
Member

sloria commented Sep 6, 2017

Thanks!

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.

2 participants