Federico Ciardi

Results 198 comments of Federico Ciardi

The `_locals` key is added to `res.render(view, options)` options here: https://github.com/expressjs/express/blob/508936853a6e311099c9985d4c11a4b1b8f6af07/lib/response.js#L1001-L1004 You are passing an object literal that is treated as `options`, to prevent this from happening you need to...

Hi @ConfSlay, you can use [`buildCheckFunction(['files'])`](https://express-validator.github.io/docs/check-api.html#buildcheckfunctionlocations) to create a custom checker and then add a `.custom(...)` or `.exists()` validator to check for that parameter. This should work fine!

Hi there, there is currently no way to accomplish what you are trying to. This should be however fairly easy to implement directly in the check middleware or as a...

I lost my example repo🤦, I will post a snippet of code as soon as I have time to create it again :)

It is impossible for us to detect which option threw the error because [validatorjs](https://github.com/validatorjs/validator.js) doesn't give us any kind of information about that `e.g. isLength({ min: 10 })`. However we...

You added trycatch around `check().isLength...`?

I completely agree with you about this feature requirement, it is in the v7 roadmap right now, we just need to implement a solution😄