Only getting single generic validation error message
Closed this issue · 1 comments
sppatel commented
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"
}
sppatel commented
Nevermind.. this was caused by downstream middleware in my app that was dropping the errors property from the object.