Re: Calling explain on a merge'd spec outputs duplicate error messages

2018-09-01 Thread Alex Miller
I think it's finding the problems through the multiple merged map paths but would be reasonable to de-dupe these if they're identical. Feel free to file a jira for it. On Saturday, September 1, 2018 at 10:19:49 AM UTC-5, Lucas Groenendaal wrote: > > Just started learning about spec and am going

Calling explain on a merge'd spec outputs duplicate error messages

2018-09-01 Thread Lucas Groenendaal
Just started learning about spec and am going through the guide: https://clojure.org/guides/spec (so I'm using clojure 1.9.0 and have required clojure.spec.alpha). They introduced the merge macro with this example: (s/def :animal/kind string?) (s/def :animal/says string?) (s/def :animal/common (