From ffea5d5e610f429b558e07df3f3d00f1b74a9aeb Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sun, 31 May 2020 21:36:47 -0600 Subject: [PATCH] Document top-level UnsignedData objects --- scripts/templating/matrix_templates/units.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/templating/matrix_templates/units.py b/scripts/templating/matrix_templates/units.py index 5a7ff94e..ff614e34 100644 --- a/scripts/templating/matrix_templates/units.py +++ b/scripts/templating/matrix_templates/units.py @@ -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"