Not possible to m/encode
value from mt/default-value-transformer
#576
Labels
enhancement
New feature or request
m/encode
value from mt/default-value-transformer
#576
Hi @ikitommi,
First of all, thanks for Malli, it's such a great library. It quickly became the "Org mode of data specification libraries" for me.
I wanted to use it for generating empty values from schemas, based on
:defaults
passed tomt/default-value-transformer
and noticed that it doesn't work as I'd expect. I created this test to illustrate it:Running it results in:
Before I go ahead and try to fix it I wanted to see if you think that this is a fair expectation of how
m/encode
ing a value with these default value transformers should work. I noticed that #169 touches on exactly the thing I want to do with:defaults
, but it doesn't seem to work as I'd expect. Maybe I'm doing something incorrectly here (or have the wrong expectations), so feel free to show me the right way as well.The text was updated successfully, but these errors were encountered: