metosin / malli

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

refactor(core): support passing custom ':type' in into-schema opt for :map and :map-of #968

Closed jasonjckn closed 6 months ago

jasonjckn commented 8 months ago

since the into-schema/'higher kinded schema' :map's uses map? as its predicate, and no instance of datomic.query.EntityMap is a map? but supports most of the interfaces&protocols, i need to define my own variant, namely :entity-map, i saw you support changing the predicate, so why not the :type tag as well? This PR does that.

image
ikitommi commented 6 months ago

thanks!