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:
parent
500b4eb32d
commit
a92fa6392d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue