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

     1  {% for sub_property in schema.iterate_properties %}
     2    {%- if sub_property.is_additional_properties and not sub_property.is_additional_properties_schema or sub_property.is_pattern_property -%}
     3      {% continue %}
     4    {% endif %}
     5  
     6    {%- if sub_property is deprecated -%}
     7      {% continue %}
     8    {% endif %}
     9  
    10    {% set html_id = sub_property.html_id %}
    11  
    12    {% set description = sub_property | get_description %}
    13  
    14  {% if sub_property.type_name == "object" or sub_property.type_name == "array" %}
    15  <details open>
    16  {% else %}
    17  <details>
    18  {% endif %}
    19  <summary>
    20      {% filter md_heading(1, html_id, True) -%}
    21        {%- filter replace('\n', '') -%}
    22          {% with schema=sub_property %}{%- include "breadcrumbs.md" %} {% endwith %}
    23          {%- if not skip_required and sub_property.property_name -%}
    24              {{ "*" if sub_property.is_required_property else "" -}}
    25          {%- endif -%}
    26        {%- endfilter %}
    27      {%- endfilter %}
    28  
    29  </summary>
    30  &nbsp;
    31  <blockquote>
    32  
    33    {% if sub_property.type_name == "object" or sub_property.type_name == "array" %}
    34    ## {% with schema=sub_property %}
    35      {%- for node in schema.nodes_from_root -%}
    36        {%- if node.name_for_breadcrumbs == "root" or node.name_for_breadcrumbs.endswith(" items") -%}{% continue %}{%- endif -%}
    37        {{ node.name_for_breadcrumbs }}{%- if not loop.last %} > {% endif -%}
    38      {%- endfor -%}
    39    {% endwith %}
    40    {% endif %}
    41  
    42    {% with schema=sub_property, skip_headers=False %}
    43      {%- if not skip_required and sub_property.property_name -%}
    44          {{ md_badge("Required", "red", show_text=False) if sub_property.is_required_property else "" -}}
    45      {%- endif -%}
    46      {% include "content.md" %}
    47    {% endwith %}
    48  
    49  </blockquote>
    50  </details>
    51  
    52  {% endfor %}