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

Class names case conflicts #269

Closed
tefra opened this issue Sep 27, 2020 · 0 comments
Closed

Class names case conflicts #269

tefra opened this issue Sep 27, 2020 · 0 comments
Labels

Comments

@tefra
Copy link
Owner

tefra commented Sep 27, 2020

Currently the generators tries to create two class A and two class B, thankfully the class resolver raises an exception before that.

    raise ResolverValueError(f"Duplicate class: `{obj.name}`")
E   xsdata.exceptions.ResolverValueError: Duplicate class: `A`
<?xml version="1.0" encoding="utf-8" ?> 
<xs:schema id="repro" 
                  elementFormDefault="qualified"
                  xmlns:xs="http://www.w3.org/2001/XMLSchema">

 	<xs:element name="A" type="base-A" substitutionGroup="item"/>
 	<xs:element name="B" type="base-B" substitutionGroup="item"/>
 	<xs:element name="a" type="A" substitutionGroup="item"/>
 	<xs:element name="b" type="B" substitutionGroup="item"/>
@tefra tefra added the known label Sep 27, 2020
@tefra tefra closed this as completed in 22c70d8 Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant