Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Suggest default values for missing data.
The default Keyword is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"pageSize": { "type": "integer", "default": 20 },
"sort": { "type": "string", "default": "newest" }
}
}Practice the The default Keyword example in a small scratch file, then explain what changed and why.