{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "User Registration", "type": "object", "properties": { "name": { "type": "string", "minLength": 2, "maxLength": 50 }, "email": { "type": "string", "format": "email" }, "age": { "type": "integer", "minimum": 18 } }, "required": ["name", "email", "age"] } $schema : This just tells you which version of JSON Schema you’re using. { "type": "object", "properties": { "userId": { "type": "string" }, "email": { "type": "string", "format": "email" }, "phoneNumber": { "type": "string", "minLength": 10 }, "bio": { "type": "string", "maxLength": 250 } }, "required": ["userId", "email"] }