Both ProductRatingSupportingMessage and ProductSupportingMessage share the EGDSPlainText type. However, when generating the Kotlin classes, I get something like this:
@Generated
public data class EGDSPlainText(
public val text: String,
public val text: String,
) : ProductRatingSupportingMessage, ProductSupportingMessage
Expected behavior
data classes with unique fields.
Library Version What version are you using? latest.
Describe the bug
Generated data classes contain duplicated fields when using unions
To Reproduce Steps to reproduce the behavior. Please provide:
Both
ProductRatingSupportingMessage
andProductSupportingMessage
share theEGDSPlainText
type. However, when generating the Kotlin classes, I get something like this:Expected behavior data classes with unique fields.