Fork me on GitHub
#reitit
<
2023-04-17
>
fuad17:04:13

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?