Fork me on GitHub
#malli
<
2020-02-07
>
eoliphant20:02:25

hi quick question on error messages. I’m trying to do a custom message for each condition, so for your initial example, somehting like

(-> [:and
     [int? {:error/message "Not int"}]
     [:> 6 {:error/message "Less than 6"}]]
  (m/explain 6))
That doesn’t work, nor does say this [[:> 6] {:error/message "Less than 6"}]] though
(-> [:and
     [int? {:error/message "Not int"}]
     [:> 6]]
  (m/explain "a"))
is just fine