Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Mark fields as read-only or write-only.
readOnly & writeOnly is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"id": { "type": "integer", "readOnly": true },
"password": { "type": "string", "writeOnly": true }
}
}Practice the readOnly & writeOnly example in a small scratch file, then explain what changed and why.