Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'keys' #32

Open
crudo10 opened this issue Nov 20, 2016 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'keys' #32

crudo10 opened this issue Nov 20, 2016 · 0 comments

Comments

@crudo10
Copy link
Contributor

crudo10 commented Nov 20, 2016

Function _get_example_from_properties in swagger_parser.py contains the following code:

properties = local_spec.get('properties')
required = local_spec.get('required', properties.keys())

which throws

AttributeError: 'NoneType' object has no attribute 'keys'

error if there is no "properties" property in the object. I know it is weird to have an object without properties but I do have these in our Swagger due to some stubbed/not implemented features.

flavianh pushed a commit that referenced this issue Jun 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant