From 65ff8492386685b84fbb1785028ba6f41196b435 Mon Sep 17 00:00:00 2001 From: Asher Glick Date: Sun, 26 May 2024 16:26:25 -0500 Subject: [PATCH] adding the components of custom compound attributes to the web docs --- xml_converter/generators/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xml_converter/generators/main.py b/xml_converter/generators/main.py index 7e7f99e7..187b2440 100644 --- a/xml_converter/generators/main.py +++ b/xml_converter/generators/main.py @@ -261,7 +261,8 @@ def generate_auto_docs(self, metadata: Dict[str, MetadataType], content: Dict[st description=content[fieldkey] # todo: )) - if fieldval.variable_type == "CompoundValue": + # Include the "component" fields of any compound fields + if fieldval.variable_type == "CompoundValue" or fieldval.variable_type == "CompoundCustomClass": for component_field in fieldval.components: binary_field_name = fieldval.protobuf_field + "." + component_field.protobuf_field