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

XSD support for enumerables? #16

Open
sjoerdtalsma opened this issue May 1, 2017 · 0 comments
Open

XSD support for enumerables? #16

sjoerdtalsma opened this issue May 1, 2017 · 0 comments

Comments

@sjoerdtalsma
Copy link
Contributor

The CarBrand example could be mapped to/from the following XSD union snippet:

<simpleType name="knownCarbrands">
    <restriction base="string">
        <enumeration value="Tesla"/>
        <enumeration value="Aston Martin"/>
        ....
    </restriction>
</simpleType>
<simpleType name="otherCarbrand">
    <restriction base="string"/>
</simpleType>

<simpleType name="carbrand">
    <union memberTypes="knownCarbrands otherCarbrand" />
</simpleType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant