Document top-level UnsignedData objects
This commit is contained in:
parent
3fc5540755
commit
ffea5d5e61
1 changed files with 7 additions and 0 deletions
|
@ -910,6 +910,13 @@ class MatrixUnits(Units):
|
|||
Units.prop(json_schema, "properties/content")
|
||||
)
|
||||
|
||||
# Include UnsignedData if it is present on the object
|
||||
unsigned = Units.prop(json_schema, "properties/unsigned")
|
||||
if unsigned:
|
||||
tbls = get_tables_for_schema(unsigned)
|
||||
for tbl in tbls:
|
||||
schema["content_fields"].append(tbl)
|
||||
|
||||
# grab msgtype if it is the right kind of event
|
||||
msgtype = Units.prop(
|
||||
json_schema, "properties/content/properties/msgtype/enum"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue