malli

https://github.com/metosin/malli :malli:
kwrooijen 2021-02-12T15:16:51.091400Z

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

ikitommi 2021-02-12T15:21:00.092Z

@kevin.van.rooijen a bug, PR welcome

kwrooijen 2021-02-12T15:21:09.092200Z

Will do 👍

kwrooijen 2021-02-12T15:21:17.092400Z

Kind of have dejavu with this bug

kwrooijen 2021-02-12T15:21:50.092700Z

https://github.com/metosin/malli/pull/223/files lol 😅

😅 1
ikitommi 2021-02-12T15:24:08.093100Z

falsey is hard.

kwrooijen 2021-02-12T15:24:31.093600Z

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

🎯 1