{%- if type_name == "string" -%}
{%- if "minLength" in keys -%}
{{ restriction("Must be at least " ~ keys["minLength"].literal ~ "
characters long", "min-length", keys["minLength"].html_id) }}
{%- endif -%}
{%- if "maxLength" in keys -%}
{{ restriction("Must be at most " ~ keys["maxLength"].literal ~ "
characters long", "max-length", keys["maxLength"].html_id) }}
{%- endif -%}
{%- endif -%}
{%- if type_name in ["integer", "number"] -%}
{%- set restriction_text = (schema | get_numeric_restrictions_text("", "
")) -%}
{%- if restriction_text -%}
{{ restriction(schema | get_numeric_restrictions_text("", "
"), "numeric", schema.html_id ~ "_number") }}
{%- endif -%}
{%- endif -%}