'Validation does not work when performing a custom validation, Express Validator Express
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

