Closed ben-walker closed 3 years ago
@ben-walker Sorry for the late response, I totally missed this issue!
I understand the problem here... Let me take a look and get back to you! It would be a nice feature if we could apply the transforms before passing them to the resolver.
@ben-walker this was added in #11 that was just merged! Credit to @paolotiu.
Awesome, you love to see it!
First off, thanks for building this, it's great! Just what I wanted from a Nexus validation package!
Sorry if this is a known limitation, but I noticed that yup transformers don't seem to impact what gets passed to the
resolve
function. For instance, in this code:The
username
field can still contain leading/trailing spaces, even with the call totrim()
in the validate function.