zefchain / serde-reflection

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

[swift] Write enum variants as camelCase #11

Closed agg23 closed 2 years ago

agg23 commented 2 years ago

Summary

Changes Swift enum variants to be expressed in camelCase, rather than Rust's UpperCamelCase. Addresses #10

Test Plan

Swift tests are passing. It would be nice to have better testing in general on the generated code, as the coverage for a change like this is very small (as you can see in the test structure, it was a single character change), but I didn't want to try to write new tests unprompted, given how complicated the current testing setup appears to be.