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

A union inside a simpleType fails #50

Open
Mammux opened this issue Jul 26, 2024 · 0 comments
Open

A union inside a simpleType fails #50

Mammux opened this issue Jul 26, 2024 · 0 comments

Comments

@Mammux
Copy link
Contributor

Mammux commented Jul 26, 2024

The code does not handle a xs:simpleType that contains a union, even though each alternative in the union has a restriction.

No restriction for this simple type SimpleType { name: "", restriction: None, list: None, union: Some(Union { member_types: "" }) }

<xs:simpleType>
    <xs:union>
        <xs:simpleType>
            <xs:restriction base="xs:nonNegativeInteger">
                <xs:maxInclusive value="999"/>
            </xs:restriction>
        </xs:simpleType>
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:enumeration value="TBN"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:union>
</xs:simpleType>
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

1 participant