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

Stop Pascalizing Enum Cases #162

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

lkirkwood
Copy link
Contributor

As per #154, the current implementation pascalizes enum case names and can therefore cause clashes with valid XSDs.
I have replaced the default formatting for enum case names with just filtering and sanitization.

I also added an #[allow(non_camel_case_types)] to generated enums in order to avoid this change triggering clippy lints.

@lkirkwood lkirkwood force-pushed the case-sensitive-enums branch from abe8ff8 to 938809c Compare April 21, 2024 03:01
Much the same as non_camel_case_types but clippy will still complain
without this.
@lkirkwood
Copy link
Contributor Author

Had to change the allow lint to #[allow(non_camel_case_types, clippy::upper_case_acronyms) to silence clippy warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant