Include full AJV error on api

This commit is contained in:
Rory& committed 2025-10-17 03:44:08 +02:00
1 parent 95d13499d4
commit c41c3c068e
2 files changed
+6 -2

No files matched your search

+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();