Schema template
JSON Schema
{
"type": "array",
"contains": {
"type": "number",
"minimum": 10
}
}Valid example JSON
[
2,
12,
4
]Invalid example JSON
[
1,
2,
3
]Fields
| Field | Type | Required | Description |
|---|---|---|---|
contains | schema | Yes | The array is valid when one or more elements match this schema. Later drafts can combine it with minContains and maxContains. |
How to use this schema
contains is useful for feature lists, mixed event arrays, and validation where one required marker or qualifying value must appear somewhere in an array.
Version support and combinations
This keyword or pattern is commonly supported across modern JSON Schema workflows. Check your validator for Draft-04, Draft-07, 2019-09, and 2020-12 behavior before relying on newer composition or conditional features.
Common combination: pair this reference with type, required, and properties so validation errors are specific enough for API clients and form users.
Batch validation seed
Want to validate JSON Schema in bulk? Toolumina Pro can grow into batch validation for 100+ files, saved schemas, and repeatable API contract checks.