github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/hack/.templates/jsonschemaforhumans/section_array.md (about)

     1  {% set min_items = schema.kw_min_items.literal or "N/A" %}
     2  {% set max_items = schema.kw_max_items.literal or "N/A" %}
     3  {% set kw_unique_items = schema.kw_unique_items.literal or "False" %}
     4  {% set kw_additional_items = schema.kw_additional_items.literal or "N/A" %}
     5  
     6  {{ md_badge("Min Items: " + min_items, "gold", show_text=False) }}
     7  {{ md_badge("Max Items: " + max_items, "gold", show_text=False) }}
     8  {{ md_badge("Item unicity: " + kw_unique_items, "gold", show_text=False) }}
     9  {{ md_badge("Additional items: " + kw_additional_items, "gold", show_text=False) }}
    10  
    11  
    12  {% if schema.array_items_def %} {% filter md_heading(2) %} {% with schema=schema.array_items_def %}{%- include "breadcrumbs.md" %}{% endwith %} {% endfilter %} {% with schema=schema.array_items_def, skip_headers=False, skip_required=True %} {% include "content.md" %} {% endwith %} {% endif %}
    13  
    14  {% if schema.kw_items %}
    15  {{ md_badge("Min Items: " + min_items, "gold", show_text=False) }}
    16  {{ md_badge("Max Items: " + max_items, "gold", show_text=False) }}
    17  {{ md_badge("Item unicity: " + kw_unique_items, "gold", show_text=False) }}
    18  {{ md_badge("Additional items: " + kw_additional_items, "gold", show_text=False) }}
    19  
    20  
    21  {% for item in schema.kw_items %}
    22      {% filter md_heading(3, item.html_id) %}
    23      {% with schema=item %}{%- include "breadcrumbs.md" %}{% endwith %}
    24      {% endfilter %}
    25      {% with schema=item, skip_headers=False, skip_required=True %}
    26          {% include "content.md" %}
    27      {% endwith %}
    28  {% endfor %}
    29  {% endif %}
    30  
    31  {% if schema.kw_contains and schema.kw_contains.literal != {} %}
    32  {{ "At least one of the items must be" | md_heading(3) }}
    33  {% with schema=schema.kw_contains, skip_headers=False, skip_required=True %}
    34      {% include "content.md" %}
    35  {% endwith %}
    36  {% endif %}