-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Serialize enums as CamelCase #2016
Comments
Hey @sunce86, I would like to work on the issue. |
@devansh1401 go for it! you might need to adjust a few driver tests along the way... |
I've made the necessary changes in my forked repository. You can find the changes in my forked repository here: |
You should be able to create a PR from fork and see which |
#2020 |
# Description Copied from the original PR: > Replaced all occurrences of #[serde(rename_all = "lowercase")] with `#[serde(rename_all = "camelCase")]. > Ensured that the changes maintain the readability and functionality of the code. > This pull request addresses the concern raised about enum variant readability and serialisation. The changes improve the codebase's consistency and enhance its clarity. > Please review the changes, and I'm open to any feedback or adjustments to ensure the code's quality and maintainability. Thank you for your time and consideration. ## Related PRs #2020 fixes: #2016 --------- Co-authored-by: Devansh Kukreja <[email protected]> Co-authored-by: Devansh kukreja <[email protected]>
Background
I find
lowercase
for enums really hard to read if variant contains multiple words. If others agree, we should serialize them as CamelCase.Remove all occurrences of
#[serde(rename_all = "lowercase")]
.The text was updated successfully, but these errors were encountered: