Skip to main content

explain-data

functionv1.9

cljs.spec/explain-data

(explain-data [spec x])
Given a spec and a value x which ought to conform, returns nil if x conforms, else a map with at least the key ::problems whose value is a collection of problem-maps, where problem-map has at least :path :pred and :val keys describing the predicate and the value that failed at that path.

No examples yet. Be the first to add one!