Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Reference schemas in other files or URLs.
External References is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"author": { "$ref": "https://example.com/schemas/user.json" },
"address": { "$ref": "address.json#/$defs/address" }
}
}Practice the External References example in a small scratch file, then explain what changed and why.