schema

imre 2016-08-30T15:40:52.000003Z

hi all, here's an interesting one to all of you schema gosus:

(type (first {:asdf "asdf"}))
=> clojure.lang.MapEntry

(type ((schema.coerce/coercer
         (sc/map-entry (sc/eq :asdf) sc/Str)
         (constantly nil))
        (first {:asdf "asdf"})))
=> clojure.lang.PersistentVector
why does the type change during coercion?