Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
boolean xs:element (minOccurs=1) with default value produces bad code #245
compile a schema that has nillable boolean with a default value.
I'm getting a compilation error in xmlprotocol.scala generated by latest scalaxb (1.1.2) from a large WSDL file:
Here is a corresponding piece of code (the error is on first "p2.headOption map" line):
The error seems strange to me since there are several very similar constructions in the code around. Are all of them generated wrong?
Can anyone give me a hint what is wrong here?
Original WSDL and all code is in my github project: https://github.com/alboko/aw-scalaxb-test
pushed a commit
Apr 15, 2014
changed the title from
compilation error in generated xmlprotocol.scala - found: Boolean, required: Option[Boolean]
nillable boolean with default value produces bad code
Jun 9, 2014