Fork me on GitHub
#malli
<
2021-02-12
>
kwrooijen15: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

kwrooijen15:02:09

Will do 👍

kwrooijen15:02:17

Kind of have dejavu with this bug

ikitommi15:02:08

falsey is hard.

kwrooijen15:02:31

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

🎯 1