This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-18
Channels
- # beginners (17)
- # calva (1)
- # clara (1)
- # cljs-dev (12)
- # clojure (151)
- # clojure-france (11)
- # clojure-uk (6)
- # conjure (4)
- # datomic (32)
- # duct (42)
- # emacs (2)
- # fulcro (20)
- # lambdaisland (4)
- # malli (5)
- # meander (32)
- # pathom (8)
- # reagent (1)
- # reitit (7)
- # shadow-cljs (2)
- # sql (6)
- # tools-deps (2)
- # vim (17)
- # xtdb (1)
final(?) cleanup for transformers: https://github.com/metosin/malli/pull/224
big change is that collection transformers don't coerce their type if children don't need transformation
. In practise:
(m/decode [:vector keyword?] '("abba") (mt/json-transformer))
; => [:abba]
(m/decode [:vector string?] '("abba") (mt/json-transformer))
; => ("abba")
for string-transformer
, works like before:
(m/decode [:vector string?] '("abba") (mt/string-transformer))
; => [:abba]