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

     1  {% if schema.kw_if %}
     2      {% set first_property =  schema.kw_if | get_first_property %}
     3  
     4      {% if schema.kw_then %}
     5          {%- filter md_heading(2) -%}If (
     6              {{- first_property.property_name | md_escape_for_table -}}
     7              {{- " = " -}}
     8              {{- first_property.kw_const.literal | python_to_json -}}
     9          ){%- endfilter -%}
    10          {% with schema=schema.kw_then, skip_headers=False%}
    11              {% include "content.md" %}
    12          {% endwith %}
    13      {% endif %}
    14      {% if schema.kw_else %}
    15          {%- filter md_heading(2) -%}Else (i.e. {{ " " }}
    16              {{- first_property.property_name | md_escape_for_table -}}
    17              {{- " != " -}}
    18              {{- first_property.kw_const.literal | python_to_json -}}
    19          ){%- endfilter -%}
    20          {% with schema=schema.kw_else, skip_headers=False %}
    21              {% include "content.md" %}
    22          {% endwith %}
    23      {% endif %}
    24  {% endif %}