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

Enumeration duplicates with special characters like "+" #255

Merged
merged 3 commits into from
Aug 13, 2023

Conversation

jens1205
Copy link

I am having the following enumeration

	<xs:simpleType name="UebertragungsverfahrenType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ADSL2AM"/>
			<xs:enumeration value="ADSL2+AM"/>
		</xs:restriction>
	</xs:simpleType>

Currently normalize just throws array all illegal characters in an identifier, leading to a duplicate const value and a compilation error.

This PR introduces a specialCharacterMapping, which adds a Plus for the + in the name

@jens1205
Copy link
Author

I just found this links to #113 and there is another pending PR #114 for this topic

@c4milo c4milo merged commit a328891 into hooklift:master Aug 13, 2023
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

Successfully merging this pull request may close these issues.

3 participants