-
Notifications
You must be signed in to change notification settings - Fork 7
Complex element with choice is not generated correct anymore #24
Copy link
Copy link
Open
Description
This worked in V 0.9.1.
Xsd-snippet:
<xsd:complexType name="KontoForTilbakebetaling">
<xsd:sequence>
<xsd:choice>
<xsd:sequence>
<xsd:element name="norskKontonummer" type="Kontonummer"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="swiftBIC" type="Tekst"/>
<xsd:element name="valuta" type="Valutakode"/>
<xsd:element name="IBAN" type="Tekst"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
used to generate (Kotlin):
data class KontoForTilbakebetaling(
val norskKontonummer:String? = null,
val swiftBIC:String? = null,
val valuta:String? = null,
val IBAN:String? = null
)
{
}
And the latest code generates:
data class KontoForTilbakebetaling(
val norskKontonummer:String? = null,
)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels