Add an option to generate oneof fields as a sealed abstract class
joroKr21 opened this issue · 0 comments
joroKr21 commented
Currently oneof fields are generated as sealed traits with every variant resulting in two methods to the trait:
isFoo: Boolean
foo: Option[Foo]
Because it's a trait, the methods are mixed in to the
So in total, there are
In contrast, Abstract class methods are not mixed in.
So for oneof fields with many variants, it would be beneficial to generate an abstract class.