You can find some context here and in the linked PRs: https://github.com/plumatic/schema/pull/119
Basically, the reason we don't have defmulti is that it's difficult to implement properly, and didn't seem worth the effort and maintenance cost. The simplest workaround is to create a schematized wrapper function that calls through to your `defmulti`, and make that the public API (name the wrapper `foo` and your defmulti `foo*` or something). There are also two partial solutions: - Schematize each defmethod individually (as you mention) - Schematize the dispatch function (this can do the inputs, but not the outputs) Hope this helps, Jason On Sunday, January 17, 2016 at 12:29:43 AM UTC, JvJ wrote: > > Hello, > > I understand that Prismatic Schema has a means of annotating defmethod, > but what should I do about defmulti? > > Thanks > -- 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.