Const
NestJS-compatible validation error formatter.
Returns a body shaped as:
{ "statusCode": 400, "message": [ "Invalid email" ], "error": "Bad Request"} Copy
{ "statusCode": 400, "message": [ "Invalid email" ], "error": "Bad Request"}
When multiple issues exist, the message array contains one entry per issue in the format "field: message".
message
"field: message"
The validation issues to format
The NestJS-compatible formatted error body
NestJS-compatible validation error formatter.
Returns a body shaped as:
When multiple issues exist, the
messagearray contains one entry per issue in the format"field: message".