Closed YonatanKiron closed 1 year ago
This is really needed! Thanks @YonatanKiron
@AndrewKeig Any update?
~Is this addressing the same need as https://github.com/AndrewKeig/express-validation/pull/127?~ Edit: Sorry, you did specify that :sweat_smile:
Please include a test.
I have to admit that I'm not really a fan of dual-purposing the joi
parameter.
I guess this isn't really going anywhere, so I'll close it. Feel free to reopen if you get back to it!
Alternatively to https://github.com/AndrewKeig/express-validation/pull/127
The issue is that when you overload the
req
object with an extra property you will getValidationError
.E.g.,
Will fail.
While:
Will success