Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
List which properties must be present.
Required Properties is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"required": ["slug", "title"],
"properties": {
"slug": { "type": "string" },
"title": { "type": "string" },
"summary": { "type": "string" }
}
}Practice the Required Properties example in a small scratch file, then explain what changed and why.