Using Express Validator I need to verify what comes in the request but I always get an error with Express Validator indicating “Invalid value“.
This is generated with this code in my route:
check('detail').not().isEmpty()
.custom( (value, {req}) => {
console.log(req.body);
}),
So I get the error:
I have tried with other routes to do the same thing, capture the request but I always get the same error message.
I appreciate your help.