{%- set current_path = current_path ~ "/array" -%}
{%- set array_id = current_id ~ "_array" -%}
{%- set _none = current_path | record_path_id(property_path, array_id) -%}
{%- if "minItems" in property -%}
{{ restriction("Must contain a minimum of " ~ property.minItems ~ "
items", "min-items", current_path, property_path, current_id ~ "_minItems") }}
{%- endif -%}
{%- if "maxItems" in property -%}
{{ restriction("Must contain a maximum of " ~ property.maxItems ~ "
items", "max-items", current_path, property_path, current_id ~ "_maxItems") }}
{%- endif -%}
{%- if "uniqueItems" in property and property.uniqueItems == True -%}
{{ restriction("All items must be unique", "unique-items", current_path, property_path, current_id ~ "_uniqueItems") }}
{%- endif -%}
{%- if "items" in property and property["items"] is mapping and property["items"] != {} -%}