{% macro type(prop) %} {{prop.json('type')}} {%- if prop.items() -%} < {%- if prop.items().json and prop.items().json('type') -%} {{- prop.items().json('type') -}} {% elif prop.items() | isArray -%} {%- for p in prop.items() -%} {{- type(p) -}}{% if not loop.last %}, {% endif %} {%- endfor -%} {%- else -%} Unknown {%- endif -%} > {%- endif -%} {% endmacro %}