Include patternProperties as normal properties (they basically are just patterns instead of keys; we could probably annotate this more nicely in the future)

receipts
Kegan Dougal 9 years ago
parent 500b4eb32d
commit a92fa6392d

@ -30,7 +30,7 @@ def get_json_schema_object_fields(obj, enforce_title=False):
}
tables = [fields]
props = obj.get("properties")
props = obj.get("properties", obj.get("patternProperties"))
parents = obj.get("allOf")
if not props and not parents:
raise Exception(

Loading…
Cancel
Save