pull/148/head
Tim Vahlbrock 2 years ago
parent 337a3de33d
commit 7dcc8f7881
No known key found for this signature in database

@ -130,7 +130,7 @@ def value_to_schema(value):
all_keys_are_generic = all( all_keys_are_generic = all(
isinstance(key, str) and key.isnumeric() for key in value isinstance(key, str) and key.isnumeric() for key in value
) )
if all_keys_are_generic: if all_keys_are_generic and len(value) > 0:
return { return {
"type": "object", "type": "object",
"additionalProperties": value_to_schema(list(value.values())[0]), "additionalProperties": value_to_schema(list(value.values())[0]),

Loading…
Cancel
Save