Skip to content

Conversation

@woodruffw
Copy link
Contributor

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
Copy link
Owner

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

@woodruffw
Copy link
Contributor Author

Gentle ping for review on this! 🙂

@woodruffw
Copy link
Contributor Author

@psastras another gentle ping for review here 🙂 -- this is a blocker for some improvements I want to land in zizmor, so I'd greatly appreciate a fix here!

Please let me know if there's anything I can do to make review easy/painless here.

@psastras psastras enabled auto-merge (rebase) December 18, 2024 03:55
@psastras
Copy link
Owner

@woodruffw sorry looks good and again thank you -- i've rebased and move this here #767 will merge and release

@psastras
Copy link
Owner

will close this pr but feel free to re-open discussion if needed!

@psastras psastras closed this Dec 18, 2024
auto-merge was automatically disabled December 18, 2024 03:59

Pull request was closed

@psastras
Copy link
Owner

@woodruffw this is available on crates.io https://crates.io/crates/serde-sarif thanks for you work!

@woodruffw
Copy link
Contributor Author

Thanks @psastras, I greatly appreciate it! I'll have some follow-up PRs, but this was the big blocker for me 🙂

@woodruffw woodruffw deleted the ww/fix-serde-enums branch December 18, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResultKind and ResultLevel appear to serialize incorrectly

2 participants