Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex element with choice is not generated correct anymore #24

Open
k77450 opened this issue Apr 28, 2022 · 1 comment
Open

Complex element with choice is not generated correct anymore #24

k77450 opened this issue Apr 28, 2022 · 1 comment

Comments

@k77450
Copy link

k77450 commented Apr 28, 2022

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, 
  )	
@reaster
Copy link
Owner

reaster commented Apr 28, 2022

Unfortunately I don't have the bandwidth for this project anymore. I'd recommend forking and tweaking to your delight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants