{% for file in yaml_templates %}
  {{ file.dsp }}:
    {% for type in file.types %}
        {{ type.folder or type.type }}:
        {% for version in type.versions %}
            - version: {{ version.version }}
              valid_from: "{{ version.valid_from }}"
              {% if version.valid_until %}
              valid_until: "{{ version.valid_until }}"
              {% endif %}
              {% if version.schema_version %}
              schema_version: "{{ version.schema_version }}"
              {% endif %}
      {% endfor %}
    {% endfor %}
{% endfor %}
