Include full AJV error on api

This commit is contained in:
Rory&
2025-10-17 03:44:08 +02:00
parent 95d13499d4
commit c41c3c068e
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ export function route(opts: RouteOptions) {
`[VALIDATION ERROR] ${req.method} ${req.originalUrl} - SCHEMA='${opts.requestBody}' -`,
validate?.errors,
);
throw FieldErrors(fields);
throw FieldErrors(fields, validate.errors!);
}
}
next();