Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Require numbers to be multiples of a value.
multipleOf is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"price": { "type": "number", "multipleOf": 0.01 },
"quantity": { "type": "integer", "multipleOf": 5 }
}
}Practice the multipleOf example in a small scratch file, then explain what changed and why.