AndrewKeig/express-validation

Only getting single generic validation error message

Closed this issue · 1 comments

My express routes are working and all the validation rules I've defined are being enforced, however on validation failure I am not getting any detailed errors - regardless of which rule fail, I get a 400 (as expected) but the response is always generic.

{
  "error": "validation error"
}

Nevermind.. this was caused by downstream middleware in my app that was dropping the errors property from the object.