Closed kaosko closed 6 years ago
Hi Kalle, thanks for the report- you've identified an edge case, this behaviour is unintended.
(taoensso.tempura/tr {:dict {:void {:missing "foo"}}} [:void] [:key]) ; => "foo" as intended
(taoensso.tempura/tr {:dict {:void {}}} [:void] [:key]) ; => nil as intended
(taoensso.tempura/tr {:dict {:void {:missing ""}}} [:void] [:key]) ; => would expect "", but is actually throwing
I.e. the particular combination of specifying a blank :missing
val was causing an unintended problem.
Fixed in [com.taoensso/tempura "1.2.1"]
, now on Clojars.
(taoensso.tempura/tr {:dict {:void {:missing ""}}} [:void] [:key])
results in fairly obscure errorAt least it should print out the key that failed. But overall, it seems an unnecessary restriction.