schema-components - v3.7.0
    Preparing search index...

    Function extractArrayConstraints

    • Read the JSON Schema array constraint keywords (minItems, maxItems, uniqueItems, minContains, maxContains) from a schema node and return them in the ArrayConstraints shape. The contains and unevaluatedItems sub-schemas are walked separately and surfaced on the ArrayField / TupleField directly rather than as raw constraints.

      Parameters

      • schema: Record<string, unknown>

      Returns ArrayConstraints