Skip to content

Commit

Permalink
[fr33m0nk]: Moves map? as explicit opts parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fr33m0nk committed Oct 17, 2022
1 parent 91467b4 commit 4e1146e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/malli/core.cljc
Expand Up @@ -942,7 +942,7 @@

(defn -map-schema
([]
(-map-schema {:naked-keys true}))
(-map-schema {:naked-keys true :pred map?}))
([opts] ;; :naked-keys, :lazy, :pred
^{:type ::into-schema}
(reify
Expand All @@ -954,7 +954,7 @@
(-properties-schema [_ _])
(-children-schema [_ _])
(-into-schema [parent {:keys [closed] :as properties} children options]
(let [pred? (:pred opts map?)
(let [pred? (:pred opts)
entry-parser (-create-entry-parser children opts options)
form (delay (-create-entry-form parent properties entry-parser options))
cache (-create-cache options)
Expand Down

0 comments on commit 4e1146e

Please sign in to comment.