We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently:
(-> [:and [:map [:password string?] [:password2 string?]] [:fn {:error/message "passowords don't match"} '(fn [{:keys [password password2]}] (= password password2))]] (m/explain {:password "secret" :password2 "faarao"}) (me/humanize {:wrap :message})) ; => #:malli{:error "passowords don't match"}
After:
(-> [:and [:map [:password string?] [:password2 string?]] [:fn {:error/message "passowords don't match" :error/path [:password2]} ;; <--- new key '(fn [{:keys [password password2]}] (= password password2))]] (m/explain {:password "secret" :password2 "faarao"}) (me/humanize {:wrap :message})) ; => {:password2 "passowords don't match"}
The text was updated successfully, but these errors were encountered:
Support :error/path in humanized errors. Fix #105
fde6e59
08aee28
87ce2f2
No branches or pull requests
Currently:
After:
The text was updated successfully, but these errors were encountered: