Closed lenguyenthanh closed 2 months ago
@lenguyenthanh Thanks for trying and your feedback!
I've committed one of the possible solutions using @transient
annotation for tpe
and @named
annotations for leaf enum classes.
Please check if it will be acceptable for you.
Thanks @plokhotnyuk a lot, your solution works for my case. There is a bit of duplication there, but it's more than good enough!
let me go directly to the examples,
My goal is discriminate sum types based on a common fields. I tried few experiment with
CodecMakerConfig
but doesn't seem to work.I think I could make custom Codec for each
case
, but in this situation, I have a lot of case like this so I would love to have it derives automatically for me.