Remove extra branch in example generation

pull/977/head
Travis Ralston 6 years ago
parent 042772aaf5
commit 5ade15534d

@ -406,10 +406,7 @@ def get_example_for_schema(schema):
items = schema['items'] items = schema['items']
if isinstance(items, list): if isinstance(items, list):
return [get_example_for_schema(i) for i in items] return [get_example_for_schema(i) for i in items]
result = get_example_for_schema(items) return get_example_for_schema(items)
if isinstance(result, list):
return [result]
return result
if proptype == 'integer': if proptype == 'integer':
return 0 return 0

Loading…
Cancel
Save