Fork me on GitHub
#malli
<
2022-04-25
>
dvingo13:04:35

I don't think it's that misleading - the code is available here where the initial default registry is setup: https://github.com/metosin/malli.io/blob/master/src/malli/web.cljs#L28

🙌 1
dvingo13:04:41

linking to these sources from the site is probably a good idea though

minosniu14:04:04

Worked like a charm:dizzy:

dvingo13:04:46

I think it's apparent that the local registry being used does not contain all of the schemas available (not just :merge)

ikitommi14:04:19

maybe the util-schema types should be prefixed? e.g. :merge -> :util/merge to make the it more explicit that they are not part of the default registry? btw this works too:

(def Merge (mu/-merge))

(m/validate [Merge [:map [:x :int]] [:map [:y :int]]] {:x 1, :y 2}) ; => true

âž• 2
minosniu14:04:10

:util/merge seems more prominent and alerting.