JSON Schema minItems Keyword

minItems sets the minimum number of items.

Syntax

{"type": "array", "minItems": 1}

Explanation

Use minItems to prevent empty arrays where data is required.