Skip to content

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

Open
@alexbechmann

Description

@alexbechmann

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions