Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Validate email addresses and URLs.
Email & URI Formats is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"email": { "type": "string", "format": "email" },
"website": { "type": "string", "format": "uri" }
}
}Practice the Email & URI Formats example in a small scratch file, then explain what changed and why.