Fork me on GitHub
#clojure-spec
<
2018-05-28
>
alex-dixon02:05:16

Is there a way to access why a spec passed?

gfredericks02:05:14

isn't that what conforming is?

alex-dixon03:05:56

Not sure. The situation that prompted that question is a multi spec that matched on a particular :type value of a map and spec associated with that value. I can tell that it passes and get the original map back, just curious if there’s a way to access explain information when it passes. May be interesting stuff that could be done with it but seems only to get generated upon failure

alexmiller13:05:03

explain info is only being built up when using explain, so no?