Skip to content

Commit

Permalink
adding the components of custom compound attributes to the web docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AsherGlick committed May 26, 2024
1 parent d17792c commit 65ff849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xml_converter/generators/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65ff849

Please sign in to comment.