Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Attach sample values to a schema.
The examples Keyword is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"examples": ["json-schema-basics", "json-schema-arrays"]
}
}
}Practice the The examples Keyword example in a small scratch file, then explain what changed and why.