{%- if type == "string" -%}
{%- if "minLength" in property -%}
{{ restriction("Must be at least " ~ property.minLength ~ "
characters long", "min-length", current_path, property_path, current_id ~ "_minLength") }}
{%- endif -%}
{%- if "maxLength" in property -%}
{{ restriction("Must be at most " ~ property.maxLength ~ "
characters long", "max-length", current_path, property_path, current_id ~ "_maxLength") }}
{%- endif -%}
{%- endif -%}
{%- if type in ["integer", "number"] -%}
{%- set restriction_text = (property | get_numeric_restrictions_text("", "
")) -%}
{%- if restriction_text -%}
{{ restriction(property | get_numeric_restrictions_text("", "
"), "numeric", current_path, property_path, current_id ~ "_number") }}
{%- endif -%}
{%- endif -%}
{%- if type.startswith("array") -%}
{% include "section_array.html" %}
{%- endif -%}