You can get the registry with (s/registry), which is just a map of spec names (namespaced keywords) to the spec. Is that what you're looking for?
If you have registered (s/def ::foo string?) then you can find the spec with (::foo (s/registry)) On Wednesday, May 25, 2016 at 7:37:07 AM UTC-5, Gary Trakhman wrote: > > Is there a public way to get the registry's spec at a keyword? I can > envision other libs being built around the spec registry, and I'm trying to > write a small one (coercions) to see if I can use spec for this use-case. > Is that non-sanctioned kind of thing going forward? > > The likely candidate seems 'specize'. > -- 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.