mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Remove extra branch in example generation
This commit is contained in:
parent
042772aaf5
commit
5ade15534d
|
|
@ -406,10 +406,7 @@ def get_example_for_schema(schema):
|
|||
items = schema['items']
|
||||
if isinstance(items, list):
|
||||
return [get_example_for_schema(i) for i in items]
|
||||
result = get_example_for_schema(items)
|
||||
if isinstance(result, list):
|
||||
return [result]
|
||||
return result
|
||||
return get_example_for_schema(items)
|
||||
|
||||
if proptype == 'integer':
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue