This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-29
Channels
- # aleph (3)
- # announcements (16)
- # beginners (85)
- # calva (2)
- # cider (13)
- # clj-kondo (84)
- # cljdoc (3)
- # clojure (109)
- # clojure-belgium (1)
- # clojure-china (39)
- # clojure-europe (4)
- # clojure-france (1)
- # clojure-italy (70)
- # clojure-nl (8)
- # clojure-spec (8)
- # clojure-uk (53)
- # clojuredesign-podcast (14)
- # clojurescript (43)
- # cursive (25)
- # data-science (1)
- # datomic (4)
- # emacs (10)
- # figwheel (4)
- # garden (4)
- # graphql (5)
- # jackdaw (10)
- # jobs (5)
- # jobs-discuss (5)
- # lambdaisland (2)
- # leiningen (3)
- # luminus (7)
- # off-topic (32)
- # pathom (11)
- # pedestal (2)
- # planck (15)
- # re-frame (12)
- # reagent (4)
- # remote-jobs (2)
- # shadow-cljs (51)
- # sql (29)
- # tools-deps (47)
at risk of asking an obvious question: how do I refer to a spec from another namespace?
here's an example: in namespace-0
, I have some specs defined using (s/def ::consistent ...)
. In namespace-1
, I am using (:require [namespace-0)]
, but making calls to the specs in the other namespace by doing something like (s/valid :namespace-0/consistent data)
fails with a Unable to resolve spec :namespace-0/consistent
. How do I refer to these specs from another namespace using fully qualified keys?
actually, it works as expected using the fully qualified keys. my issue was just a typo in the spec name. 😑
actually, it works as expected using the fully qualified keys. my issue was just a typo in the spec name. 😑