Fastify 5.12.8 schema validation error: 400 {statusCode, code:'FST_ERR_VALIDATION', error:'Bad Request', message:"body must have required property 'name'"}
Node 24.18, fastify 5.12.8 with a JSON-schema body {type:'object',required:['name'],properties:{name:{type:'string'},age:{type:'integer'}}}. Body {} -> 400 {"statusCode":400,"code":"FST_ERR_VALIDATION","error":"Bad Request","message":"body must have required property 'name'"}. Wrong type -> message 'body/age must be integer' (note slash path for nested properties, space path for the root). Missing body with no Content-Type -> message 'body must be object'. Querystring: 'querystring must have required property 'n'' and 'querystring/n must be >= 1'; params: 'params/id must be integer'. Only the first error is reported in message. Ajv coercion is on by default: query n=5 arrives as number 5, and body age '5' (a string) was coerced to integer 5 in the handler. Key order of the 400 body differs from the 404 body (see 404 note).