from swagger_parser import SwaggerParser
SwaggerParser(swagger_path='petstore.yaml')
and got the following error:
.../swagger_parser/swagger_parser.pyc in build_one_definition_example(self, def_name)
99
100 # Get properties example value
--> 101 for prop_name, prop_spec in def_spec['properties'].items():
102 example = self.get_example_from_prop_spec(prop_spec)
103 if example is not None:
KeyError: 'properties'
It seems like the parser expects 'properties' to be present, which is not the case for Pets on the Pet store example.
Using the Pet Store example yaml, tried the following:
and got the following error:
It seems like the parser expects 'properties' to be present, which is not the case for
Pets
on the Pet store example.