You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
self = <swagger_parser.swagger_parser.SwaggerParser object at 0x110a8f590>
prop_spec = {'allOf': [{'$ref': '#/definitions/User', 'x-scope': ['']}, {'properties': {'rootCause': {'type': 'string'}}, 'required': ['rootCause'], 'type': 'object'}]}
def _example_from_complex_def(self, prop_spec):
"""Get an example from a property specification.
In case there is no "type" key in the root of the dictionary.
Args:
prop_spec: property specification you want an example of.
Returns:
An example.
"""
if 'schema' in prop_spec and 'type' not in prop_spec['schema']:
definition_name = self.get_definition_name_from_ref(prop_spec['schema']['$ref'])
if self.build_one_definition_example(definition_name):
return self.definitions_example[definition_name]
> elif prop_spec['schema']['type'] == 'array': # Array with definition
E KeyError: 'schema'
my swagger.yml contains:
and it chokes on
example comes from here
The text was updated successfully, but these errors were encountered: