zefchain / serde-reflection

Rust libraries and tools to help with interoperability and testing of serialization formats based on Serde.
Apache License 2.0
137 stars 26 forks source link

[serde generate][Swift] Enum variants should be camelCased #10

Closed agg23 closed 2 years ago

agg23 commented 2 years ago

🚀 Feature Request

When generating code, enum variants should be expressed in the native preferred format. In Swift, that is camelCased, as opposed to Rust's UpperCamelCased.

Motivation

Swift types generated with serde-generate feel out of place since they start with a capital letter. It's minor, but the code would be closer to a first class citizen if they were properly camelCased.

ma2bd commented 2 years ago

released in serde-generate 0.23.0