None of the comparator schemas have default error messages, e.g.,
(-> (m/explain [:> 0] -1)
:errors first me/error-message)
;; => "unknown error"
Is there a good reason why some simple error functions haven't been added to malli.error/default-errors
other than "no-one has done it yet"? 🙂is :>
only valid for numbers or for any comparable?
In Clojure it is only valid for numbers. I'm not sure about Clojurescript.
Oh, I never thought about that.
I've opened a PR with suggestions for some simple error functions https://github.com/metosin/malli/pull/332
Merged the PR, thanks!