Validate every item in an array.
Section: Schema basics
Array item validation
json
json
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"email": { "type": "string", "format": "email" }
},
"required": ["id", "email"]
}
}Explanation
Use `items` to define the shape of each array element.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Schema basics