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

This commit is contained in:
Kegan Dougal 2015-09-08 17:14:31 +01:00
parent 500b4eb32d
commit a92fa6392d

View file

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