mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-17 00:44:09 +01:00
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
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue