Skip to content
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

Properties are not re-written to be snake case, which causes rust warnings #18

Open
alexbechmann opened this issue Jul 18, 2023 · 0 comments

Comments

@alexbechmann
Copy link

alexbechmann commented Jul 18, 2023

When generating code in rust with command:

jtd-codegen ./my-type.jtd.json --rust-out ...
image

Rust will warn if properties are camelCase instead of snake_case. Should the rust codegen rename the properties to snake_case automatically?

image

It looks like the rename field is already implemented so should be enough to rename the properties and the serialize / deserialize will continue to work?

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

No branches or pull requests

1 participant