Hi, is there a build-in way to get validation errors by field? I would like the backend to return a json string, and have a backbone view set validation errors pr. input. Right now I'm doing something like:
(defn errors-by-field [model]
(reduce (fn [so-far k]
(if-let [e (v/get-errors k)]
(assoc so-far k e)
so-far)) {} (keys model)))
But since this is a normal use-case (I think?), I'm wondering if I'm missing something obvious?
BR
Erik