Validate JSON data with schemas, types, required fields, formats, composition, and API contracts.
Lessons
Validate date, time, and date-time strings.
Date & Time Formats is easiest to learn by reading the example, changing it, and observing the result.
{
"type": "object",
"properties": {
"createdAt": { "type": "string", "format": "date-time" },
"birthday": { "type": "string", "format": "date" },
"opensAt": { "type": "string", "format": "time" }
}
}Practice the Date & Time Formats example in a small scratch file, then explain what changed and why.