Replies: 1 comment 3 replies
-
How about adding two new rules. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there 👋,
I have been using the validators quite a while and so far I think it is very easy and good to use. Recently I have faced some scenarios where a date have to be either same with today or after today.
Example scenario
Given
Validator requirement
My current approach
Ideal approach
Documentation
Although my current approach worked and the documentation did mention how we can add a custom ref to handle more advanced usage, but the code itself looks kinda weird and not easy to understand at first sight.
Would it be better if we can have an extra optional parameters in the
after
validator to handle these scenarios?Beta Was this translation helpful? Give feedback.
All reactions