Skip to content

Enumeration duplicates with special characters like "+"#255

Merged
c4milo merged 3 commits intohooklift:masterfrom
jens1205:enumeration
Aug 13, 2023
Merged

Enumeration duplicates with special characters like "+"#255
c4milo merged 3 commits intohooklift:masterfrom
jens1205:enumeration

Conversation

@jens1205
Copy link
Copy Markdown

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
Copy Markdown
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