Closed dvingo closed 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
This was a misunderstanding on my part - closing.
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.