lumeohq / xsd-parser-rs

A xsd/wsdl => rust code generator written in rust
Apache License 2.0
96 stars 34 forks source link

Stop Pascalizing Enum Cases #162

Open lkirkwood opened 5 months ago

lkirkwood commented 5 months ago

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 commented 5 months ago

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