Skip to content

Commit

Permalink
Merge pull request #968 from jasonjckn/entity-map
Browse files Browse the repository at this point in the history
refactor(core): support passing custom ':type' in into-schema opt for :map and :map-of
  • Loading branch information
ikitommi authored Dec 31, 2023
2 parents ad78455 + 9dd68c7 commit f23c5ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/malli/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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 [_ _])
Expand Down Expand Up @@ -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 [_ _])
Expand Down

0 comments on commit f23c5ca

Please sign in to comment.