User Registration
A SvelteKit server endpoint validates incoming JSON with Zod. The request body below starts empty — every field will fail. Your task: edit the JSON so all four fields satisfy the schema on the left and the endpoint returns 200 OK. Complete that and the next exercise unlocks.
POST /api/playground/userimport { z } from 'zod';
const UserSchema = z.object({
username: z.string().min(3, 'Username must be at least 3 characters'),
email: z.email('Invalid email address'),
password: z.string().min(8, 'Password must be at least 8 characters'),
age: z.number().int().min(18, 'Must be 18 or older'),
});Hints
usernamemust be at least 3 charactersemailmust be a valid email addresspasswordmust be at least 8 charactersagemust be a number (not a string) and at least 18- All four fields are required — removing one will fail