Federico Ciardi
Federico Ciardi
1. Yes, because `null` and `undefined` are passed to `validator.js` as empty strings if I am not wrong, but if it wasn't like that it would return an error as...
It makes sense, I am quite full of things to do for the next month and I have no time to think about a detailed design and to implement the...
> - @fedeci that means if I use a factory function to create a chain like explained here https://express-validator.github.io/docs/validation-chain-api.html, then I can just call that and add `.optional()` to the...
Yes, for example in `check` it is exposed here. Maybe we should just document this so that the end user could create his own context with all his methods and...
Oops nope, asked review for the wrong PR😄
I @SJSusan, are you awaiting the promise returned from the `.run` method? ```js async function checker(req, res, next) => { await check(parameter,`${parameter} parameter invalid`) .isLength({ min: 1, max: 256 })...
@supermacro are you still interested in raising a PR for this?
Ok, I'll work on this!
Although `sanitizeBody()` is deprecated it also happens with new chain builders. Related to #931 and #883 @gustavohenke do you think that this behaviour should be changed?
@favph Sure I will, however to require a minimum array length you can use `isArray({ min: 1 })`