Currently the expected value of type field is the canonical name of sub classes. Is it possible to customize this value?
ps: Subclass name or ParentClass.SubClass might be better choices for this value. The way it is moving your model class to another package breaks the api with clients.
Not yet, but we are considering adding this.
As a workaround, you can change the canonical name of the class by annotation it with @SerialName annotation
Currently the expected value of
type
field is the canonical name of sub classes. Is it possible to customize this value?ps: Subclass name or ParentClass.SubClass might be better choices for this value. The way it is moving your model class to another package breaks the api with clients.