-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:and should short-circuit explanation - in some cases #1001
Comments
I don't think this is a solvable problem if we require If instead we have a If we make the necessary changes to (is (= ["invalid type"]
(me/humanize (m/explain [:string {:distinct true}] nil))))
(is (= ["should be distinct: \\[ provided 2 times"]
(me/humanize (m/explain [:string {:distinct true}] "[[")))) To be an equivalent solution to |
pulled from #993
Tangential
Depending on the validation it doesn't make sense to display all error messages. Consider:
But in other cases it might, such as a password field:
I don't have a suggestion and I'd need some hammock time pondering about this problem.
The text was updated successfully, but these errors were encountered: