Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Limit how many elements an array may have.
minItems & maxItems is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "array",
"items": { "type": "string" },
"minItems": 1,
"maxItems": 5
}Practice the minItems & maxItems example in a small scratch file, then explain what changed and why.