That did the trick. Thanks! On Fri, Dec 16, 2016 at 12:29 PM Alex Miller <a...@puredanger.com> wrote:
> > > On Friday, December 16, 2016 at 10:59:50 AM UTC-6, Jonathon McKitrick > wrote: > > I've run into some odd namespace issues with clojure.spec, and I'm sure > it's because I'm doing something wrong. I have this in my ns declaration: > > [foo.schema :as schema] > > However: > > foo.main> (s/valid? :foo.schema/email "f...@bar.com") > true > foo.main> (s/valid? :schema/email "f...@bar.com") > > > You want an auto-resolved keyword here to take advantage of the alias: > ::schema/email. Single colon will just be the literal namespace you write. > > > Exception Unable to resolve spec: :schema/email clojure.spec/reg-resolve! > (spec.clj:68) > foo.main> > > It would also be useful if I knew of a non-trival project I could view > that uses clojure.spec across namespaces, but without being SO complex that > the basics are obscured. > > Does anyone know of or have an example? > > -- > 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 a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/mmcMQEhI5Dc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Jonathon McKitrick -- 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.