-
-
Save ngw/0cc62ad7996b9c5177e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn valid? [{:keys [name]}] | |
(vali/rule (vali/has-value? name) | |
[:name "Your company must have a name"]) | |
(not (vali/errors? :name))) | |
server=> (valid? {:name ""}) | |
ClassCastException clojure.lang.Var$Unbound cannot be cast to clojure.lang.IDeref clojure.core/deref (core.clj:2078) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment