diff --git a/src/doc-templates/common_metadata.md.jinja2 b/src/doc-templates/common_metadata.md.jinja2 index 80dd87807f..efbd752ef3 100644 --- a/src/doc-templates/common_metadata.md.jinja2 +++ b/src/doc-templates/common_metadata.md.jinja2 @@ -82,9 +82,14 @@ Instances of this class *should* have identifiers with one of the following pref | Mapping Type | Mapped Value | | --- | --- | -{% for m, mt in schemaview.get_mappings(element.name).items() -%} +{% set native_mappings = schemaview.get_mappings(element.name).get('native', []) %} +{%- for m, mt in schemaview.get_mappings(element.name).items() -%} {% if mt|length > 0 -%} -| {{ m }} | {{ mt|join(', ') }} | + {% set display_key = 'mappings' if m == 'undefined' else m -%} + {% set filtered_mt = mt | reject('in', native_mappings) | list -%} + {% if filtered_mt|length > 0 -%} +| {{ display_key }} | {{ filtered_mt|join(', ') }} | + {% endif -%} {% endif -%} {% endfor %}