Skip to main content
Use "type": "array" for ordered lists.

Core array keywords

contains, minContains, maxContains, uniqueItems and unevaluatedItems are not supported right now. If you have a use case that requires them, reach out to us.

Example

For capped payload size, always set maxItems. The default value of minItems is 0.

prefixItems

Use prefixItems for tuple-style arrays where position matters:
This example enforces a two-element array: a metric name followed by a numeric value.