This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-30
Channels
- # announcements (25)
- # beginners (11)
- # biff (8)
- # calva (19)
- # cider (9)
- # clojure (16)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (40)
- # clojure-spec (4)
- # clojure-uk (5)
- # data-science (11)
- # dev-tooling (1)
- # emacs (46)
- # events (4)
- # figwheel-main (3)
- # gratitude (4)
- # heroku (1)
- # humbleui (1)
- # integrant (4)
- # jobs (11)
- # jobs-discuss (48)
- # lsp (3)
- # malli (24)
- # off-topic (12)
- # overtone (14)
- # pathom (26)
- # portal (4)
- # reitit (3)
- # releases (2)
- # remote-jobs (5)
- # ring-swagger (4)
- # scittle (44)
- # shadow-cljs (47)
Hi @weavejester thanks for integrant, I use it in a quite sizeable project. Only that I have to change about 50 pre-init-spec
methods now migrating to v0.9.0. Quite sad that spec is still alpha and the community at least doesn't fully embrace it nowadays.
You're welcome. The shift to assert-key
was to enable support other validation systems, while removing the dependency on Clojure spec.
You could write your own pre-init-spec
method and then use clojure.spec/assert
:
(defmethod ig/assert-key :default [k v]
(s/assert (pre-init-spec k) v))
I was in two minds about whether to remove the dependency or add a temporary deprecated. I think in retrospect it would have been better to add a deprecation and remove it in 0.10.0.