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

AttributeError exception in _get_example_from_properties() when object has no properties field #40

Closed
mtherieau opened this issue Mar 27, 2017 · 0 comments

Comments

@mtherieau
Copy link

in cases where there is no properties field (e.g. properties are specified via additionalProperties) then _get_example_from_properties() throws an AttributeError exception, like so:

https://travis-ci.org/Trax-air/swagger-parser/jobs/214411452#L643

Test case added in: #39
an example of this issue is in file: tests/no_properties.yaml

c80700d#diff-0d3c37b4c72efec5a9a3a1bde3230a16

The fix is part of same PR, here:
a191fb3

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

2 participants