diff --git a/src/app.ts b/src/app.ts index 969d18e6..24bdb0eb 100644 --- a/src/app.ts +++ b/src/app.ts @@ -66,7 +66,7 @@ export const validatorCompiler: FastifySchemaCompiler = (data) => { const result = schema.safeParse(data); if (result.success) { - return result.data; + return { value: result.data }; } const error = result.error;