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

xs:all, minOccurs=0, and nillable #216

Closed
eed3si9n opened this Issue Jun 30, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@eed3si9n
Owner

eed3si9n commented Jun 30, 2013

Originally reported by Andrea Minetti as minOccurs=0 and nillable:

But I had this trouble, when I have both minOccurs=0 and nillable in xsd scalaxb fails to compile.. for example in this piece of xsd

 <complexType name="GetProviderResponse">
        <all>
            <element name="provider" minOccurs="0" type="pst:Provider" nillable="true"/>
        </all>
    </complexType>

i get this error:

value nilOption is not a member of scala.xml.Node
case node: scala.xml.Node => Right(mio.portaone.GetProviderResponse((node \ "provider").headOption map { _.nilOption map { scalaxb.fromXML[mio.Provider](_, scalaxb.ElemName(node) :: stack) }}))

removing nillable="true" from xsd works fine

@eed3si9n eed3si9n closed this in 07e65a6 Jul 1, 2013

eed3si9n added a commit that referenced this issue Jul 28, 2013

eed3si9n added a commit that referenced this issue Sep 12, 2013

eed3si9n added a commit that referenced this issue Nov 8, 2014

eed3si9n added a commit that referenced this issue Jul 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment