1. Validating a User Profile Payload
Backend DeveloperBackground
A developer is building a registration API and needs to ensure incoming user payloads contain a valid email, age, and username.
Problem
Manually checking if the payload matches the schema is slow and error-prone.
How to use
Paste the user JSON into the JSON Data field, paste the user schema into the JSON Schema field, select Draft 7, and run the validation.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"username": { "type": "string" },
"email": { "type": "string", "format": "email" },
"age": { "type": "integer", "minimum": 18 }
},
"required": ["username", "email"]
}Outcome
The validator flags that the 'age' field is a string instead of an integer, allowing the developer to fix the client-side payload.