metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.44k stars 205 forks source link

zone-id gen - do not use registry to lookup enum #895

Closed dvingo closed 1 year ago

dvingo commented 1 year ago

If you're using a custom default registry and require the experimental.time.generator namespace :enum will not be available yet when the experimental.time.generator namespace is compiled.

This PR switches to getting the :enum schema directly from malli.core.

Here is an example error in cljs with a custom default registry:

Screenshot_20230412_233325

ikitommi commented 1 year ago

Thanks!!