Closed celluj34 closed 8 months ago
For now I have worked around this by using ruleForTransformed
and just calling x => x.toString()
Hi @celluj34 - the types under the hood have got rather complicated, and could do with a bit of tidying up. For now I'll close this since you have an appropriate workaround, but thanks for bringing this to my attention 😃
Not a problem - it's worked for me so hopefully it helps some poor souls from google 😀
Hello;
I am using your library to validate that a date fits between a min and max date. We are actually using a string to back the date because we don't care about time or timezones, just the literal date. Here's our "fake" date class:
If I have a rule on a property with such a type, we are getting an error:
How is your library composing types such that I would get this error? What can I do to work around it?