Fork me on GitHub
#malli
<
2021-02-12
>
Kevin15:02:51

Hi, is this a bug?

(def model
  [:map
   [:my/field {:default nil} :int]])

(m/decode model params mt/default-value-transformer)
;; => {}
I'm expecting {:my/field nil} here

Kevin15:02:09

Will do 👍

Kevin15:02:17

Kind of have dejavu with this bug

ikitommi15:02:08

falsey is hard.

Kevin15:02:31

Good thing Clojure only has 2 falsey values.. instead of some other languages I won't name

🎯 3