validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

How to add field value to standard validator?

Open quyle92 opened this issue 2 years ago • 0 comments

Hi, Describe the bug How can I add custom logic to standard validator? Example would be something like: body("step").isInt({min: step + 1}); //"step" is field value. Is it possible now?

Additional context Validator.js version: 6.14.0 Node.js version: v14.15.4 OS platform: [windows, linux, macOS, etc]

Thank you.

quyle92 avatar May 17 '22 02:05 quyle92