The resulting message is generated by the walk method of the s/Either
record, see this line:
https://github.com/Prismatic/schema/blob/ce582d1602abde47143a618745cdd079e0cdaf44/src/cljx/schema/core.cljx#L437
Perhaps removing the quote before 'schemas would make the message clearer:
(list'some (list'check '% (utils/value-name x))schemas))
That would be a quick fix to avoid a strange message, and may have been
what was intended originally (typo bug?).
Otherwise one would have to change the logic, perhaps by accumulating
the result of walking each contained schema and combine them perhaps
like this:
(conj'or res)
the idea being to display a list of test for each schema or'ed together.
I'm copying this in the prismatic mailing list for the record, perhaps
Jason has further comments on this.
François
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.