Fork me on GitHub
#malli
<
2022-09-21
>
hmadelaine08:09:47

Hi ! With metosin/spec-tools I use the function (select-spec spec value) I did not find an equivalent in malli Do you plan to add it later or should I add it to my own ns malli.utils? Thanks

ikitommi09:09:19

there is no helper, but:

(m/decode schema value (mt/strip-extra-keys-transformer))

hmadelaine09:09:08

Yes that is what I did 😉 Thank you

ikitommi09:09:25

for perf:

(def select-address (m/decoder Address (mt/strip-extra-keys-transformer)))

(select-address value)

👍 1
🎉 1
ikitommi09:09:48

if you have both spec-tools and malli, please share perf numbers on that. I think it’s… big