Fork me on GitHub
#specter
<
2016-07-24
>
rui.yang01:07:48

hi, still new to specter, wonder if specter could do the following

rui.yang01:07:53

{:model {:validaton {:name {:msg "too long"}} {:age {:msg "too young"}}}}

rui.yang01:07:35

How could reset all :msg to nil? (elegantly with specter)

jjunior13002:07:07

and I renamed :validaton to :validation

jjunior13002:07:28

I don't know about elegance but I tried

jjunior13002:07:46

and I didn't evaluate it. So idk if it's good.

rui.yang04:07:00

@jjunior130: thanks for pointing me to MAP-VALS. I used (setval [:model :validation specter/MAP-VALS :msg] nil db) to set all :msg key based on old structure. and it worked. Thanks again 🙂