Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Combine referenced schemas into one document.
Bundling Schemas is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"status": { "$ref": "#/$defs/status" }
},
"$defs": {
"status": { "type": "string", "enum": ["draft", "published"] }
}
}Practice the Bundling Schemas example in a small scratch file, then explain what changed and why.