You can find the definition of the ValidationError
type here (since you seem to be using Clojure on the JVM I deleted the #+cljs
expressions):
(deftype ValidationError [schema value expectation-delay fail-explanation])
And the definition for the ErrorContainer
record here:
(defrecord ErrorContainer [error])
So to get more information about the error you could just access any of the fields of the inner ValidationError
:
(defn validation-error-details [error]
(let [values (juxt #(.schema %)
#(.value %)
#(.expectation-delay %)
#(.fail-explanation %))]
(->> error :error values)))
;; Usage
(validation-error-details error) ; where error holds the value you posted