{%- if "minItems" in keys -%} {{ restriction("Must contain a minimum of " ~ keys["minItems"].literal ~ " items", "min-items", keys["minItems"].html_id) }} {%- endif -%} {%- if "maxItems" in keys -%} {{ restriction("Must contain a maximum of " ~ keys["maxItems"].literal ~ " items", "max-items", keys["maxItems"].html_id) }} {%- endif -%} {%- if "uniqueItems" in keys and keys["uniqueItems"] == True -%} {{ restriction("All items must be unique", "unique-items", keys["uniqueItems"].html_id) }} {%- endif -%} {%- if "items" in keys and keys["items"] is not none -%}

Each item of this array must be:

{# Note that we must use keys["items"] here because keys.items is a function #} {{ content(keys["items"]) }}
{%- endif -%} {%- if "contains" in keys and keys["contains"] != {} -%}

At least one of the items must be:

{{ content(keys["contains"]) }}
{%- endif -%}