This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-17
Channels
- # ai (115)
- # announcements (8)
- # babashka (26)
- # beginners (7)
- # biff (8)
- # calva (1)
- # cider (10)
- # clerk (2)
- # clj-together (11)
- # clojure (26)
- # clojure-boston (1)
- # clojure-denmark (3)
- # clojure-europe (23)
- # clojure-nl (1)
- # clojure-norway (33)
- # clojure-uk (3)
- # clojurescript (14)
- # conjure (3)
- # cursive (65)
- # emacs (10)
- # events (18)
- # exercism (6)
- # honeysql (14)
- # hyperfiddle (11)
- # kaocha (6)
- # nbb (17)
- # off-topic (58)
- # pathom (5)
- # reagent (28)
- # reitit (1)
- # releases (1)
- # sci (3)
- # shadow-cljs (22)
- # xtdb (29)
Hi!
I'm trying to use malli.experimental.time
schemas on my reitit coercions by doing the following:
(def registry
(malli.registry/composite-registry
(malli/default-schemas)
(malli.time/schemas)))
(defn router
[components]
(ring/router
...
{:data {:coercion (reitit.coercion.malli/create {:options {:registry (mr/registry registry)}})}}))
I keep getting
{:type :malli.core/invalid-schema, :message :malli.core/invalid-schema, :data {:schema :time/instant}}
I looked at https://clojurians.slack.com/archives/C7YF1SBT3/p1650914928336379 in the channel history, as it seems to be trying to achieve something similar, but using malli.registry.registry
with merge
instead of the composite-registry
seems to yield the exact same result.
Anything I'm failing to see here?