metosin / malli

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

Qualified keyword ref schemas do not support composite schema forms #847

Closed dvingo closed 1 year ago

dvingo commented 1 year ago

If your ref schema in the registry is a vector and your supplied schema is also a vector an exception is thrown. If either of them is not in a vector then no error is thrown.

(m/schema ::test {:registry (merge (m/default-schemas) {::test [:int]})})
=> ::test

(m/schema [::test] {:registry (merge (m/default-schemas) {::test [:int]})})

Execution error (ExceptionInfo) at malli.core/-exception (core.cljc:138).
:malli.core/invalid-schema
dvingo commented 1 year ago

This was a misunderstanding on my part - closing.