From 9dd68c7d070ca494caf8f131e6c2650395a74147 Mon Sep 17 00:00:00 2001 From: Jason Jackson Date: Sun, 22 Oct 2023 20:13:06 -0700 Subject: [PATCH] refactor(core): support passing custom ':type' in into-schema opt for :map and :map-of --- src/malli/core.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/malli/core.cljc b/src/malli/core.cljc index 8808e22f2..89eecd0e3 100644 --- a/src/malli/core.cljc +++ b/src/malli/core.cljc @@ -956,7 +956,7 @@ AST (-from-ast [parent ast options] (-from-entry-ast parent ast options)) IntoSchema - (-type [_] :map) + (-type [_] (:type opts :map)) (-type-properties [_] (:type-properties opts)) (-properties-schema [_ _]) (-children-schema [_ _]) @@ -1091,7 +1091,7 @@ (-from-ast [parent ast options] (-into-schema parent (:properties ast) [(from-ast (:key ast) options) (from-ast (:value ast) options)] options)) IntoSchema - (-type [_] :map-of) + (-type [_] (:type opts :map-of)) (-type-properties [_] (:type-properties opts)) (-properties-schema [_ _]) (-children-schema [_ _])