Closed mpenet closed 10 years ago
Sorry about the delay in replying.
So given that (human-explain (check Str) 42)
returns "42 is not a java.lang.String", what do you think should be returned then by something like (human-explain (check {:name Str} {:name 42})
?
I'm thinking it should be {:name "is not a java.lang.String}
37d8e77ff489cf475063994175dca941a50f1764 ensures that map schemas can be human-explain
ed. Hope this is what you were after. Please re-open if you have an example of a schema still not supported.
human-explain
now only works with simple schema types. If you try to use it against a schema such as {:a String} it will fail as the protocol doesn't dispatch on maps.It's probably possible to just extend the protocol to collection types and recur until we find valid dispatch values.