psastras / sarif-rs

A group of Rust projects for interacting with the SARIF format
https://psastras.github.io/sarif-rs/
MIT License
79 stars 17 forks source link

fix: bare enums serialize with their tags #739

Open woodruffw opened 1 week ago

woodruffw commented 1 week ago

This should fix #738: enums that were previously marked as serde(untagged) are now marked with #[serde(rename_all = "camelCase")] where appropriate, causing them to serialize as their expected camelCase string equivalents.

I've also gone and deduplicated #[strum(serialize = "...")] where possible, by moving all of the explicit camelCasing to #[strum(serialize_all = "camelCase")].

psastras commented 1 week ago

@woodruffw thanks for the issue report and PR, I'll try to take a look later this week!