Skip to content

Complex element with choice is not generated correct anymore #24

@k77450

Description

@k77450

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, 
  )	

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions