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")
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?