Open opqdonut opened 3 weeks ago
Originally reported as metosin/reitit#632. Moving it here because it's a malli bug.
Similar to metosin/reitit#407, except that the maps are closed and contain optional keys. For example,
(malli.core/decode [:or [:map {:closed true} [:x {:optional true} int?]] [:map {:closed true} [:y {:optional true} keyword?]]] {:y :foo} malli.transform/strip-extra-keys-transformer)
should return {:y :foo} but actually returns {}.
{:y :foo}
{}
Previously, #201
Originally reported as metosin/reitit#632. Moving it here because it's a malli bug.
Similar to metosin/reitit#407, except that the maps are closed and contain optional keys. For example,
should return
{:y :foo}
but actually returns{}
.