Array and Composition Schema in JSON
From the JSON cheat sheet ยท JSON Schema ยท verified Aug 2026
Array and Composition Schema
Validate collections and combine reusable rules.
json
{
"type":"array",
"items":{"type":"string"},
"uniqueItems":true
}๐ items applies a schema to array elements
๐ก $defs and $ref reuse schema fragments
๐ allOf requires every subschema to match
โ ๏ธ oneOf requires exactly one match
json-schemaarrayscomposition
Continue with JSON
Save the full cheat sheet or work through every related task.