Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Validate nested, self-referential structures like trees.
Recursive Schemas is easiest to learn by reading the example, changing it, and observing the result.
{
"$id": "https://example.com/node.json",
"type": "object",
"properties": {
"name": { "type": "string" },
"children": {
"type": "array",
"items": { "$ref": "#" }
}
}
}Practice the Recursive Schemas example in a small scratch file, then explain what changed and why.