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
:error/path
Open this feature request as discussed here: https://clojurians.slack.com/archives/CLDK6MFMK/p1701249325700779
It would be great if it was possible to programmatically define :error/path depending on the validation function (and the data to be validated).
In below example from the docs :error/path only accept vectors is hard-coded to [:password2]:
[:password2]
(-> [:and [:map [:password string?] [:password2 string?]] [:fn {:error/message "passwords don't match" :error/path [:password2]} (fn [{:keys [password password2]}] (= password password2))]] (m/explain {:password "secret" :password2 "faarao"}) (me/humanize)) ; {:password2 ["passwords don't match"]}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Open this feature request as discussed here: https://clojurians.slack.com/archives/CLDK6MFMK/p1701249325700779
It would be great if it was possible to programmatically define
:error/path
depending on the validation function (and the data to be validated).In below example from the docs
:error/path
only accept vectors is hard-coded to[:password2]
:The text was updated successfully, but these errors were encountered: