@@ -569,6 +569,7 @@ def _walk_sequence_or_choice_element(self, parent_element, root_path, current_tr
569569 num_added += 1
570570 return_rows .append ({
571571 'name' : elem .name ,
572+ 'description' : "; " .join ([anno .documentation for anno in elem .annotations ]),
572573 'type' : elem .name ,
573574 'parent_path' : root_path ,
574575 'path' : root_path + '.' + elem .name ,
@@ -612,6 +613,7 @@ def _walk_sequence_or_choice_element(self, parent_element, root_path, current_tr
612613 num_added += 1
613614 return_rows .append ({
614615 'name' : elem .name ,
616+ 'description' : "; " .join ([anno .documentation for anno in elem .annotations ]),
615617 'path' : root_path + '.' + elem .name ,
616618 'type' : NamedElement .my_string (),
617619 'parent_path' : root_path ,
@@ -646,6 +648,7 @@ def _walk_sequence_or_choice_element(self, parent_element, root_path, current_tr
646648 ref_type_clean = elem .ref_type
647649 return_rows .append ({
648650 'name' : ref_type_clean ,
651+ 'description' : "; " .join ([anno .documentation for anno in elem .annotations ]),
649652 'path' : root_path + '.' + ref_type_clean ,
650653 'type' : ReferenceElement .my_string (),
651654 'parent_path' : root_path ,
@@ -737,6 +740,7 @@ def _walk_restriction_element(parent_element, root_path, current_tree_level, cur
737740
738741 return_rows .append ({
739742 'name' : elem ,
743+ 'description' : None ,
740744 'full_path' : root_path ,
741745 'path' : the_path ,
742746 'type' : 'Enumeration' ,
@@ -790,6 +794,7 @@ def process_schema(schema_object):
790794 # add 1 to tree level to account for root
791795 b = Attribute (
792796 name = se ['name' ],
797+ description = se ["description" ],
793798 type = se ['type' ],
794799 tree_level = (se ['$$treeLevel' ] + 1 ),
795800 parent = get_parent_from_path (se ['parent_path' ], schema_object ),
0 commit comments