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.

More JSON tasks

Back to the full JSON cheat sheet