Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Allow a value to be one of several types.
Multiple Types is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"id": { "type": ["string", "integer"] },
"note": { "type": ["string", "null"] }
}
}Practice the Multiple Types example in a small scratch file, then explain what changed and why.