Skip to content

snake_case to camelCase conversion #254

Open
@Dugnom

Description

@Dugnom

I have set up a nest.js instance with their grpc microservice.
The grpc microservice is providing the interfaces in json default camelCase as seems to be the expected standard by grpc clients.
Is it possible for protoc-gen-ts to generate the interface to match this provided interface?
Currently the case is kept as snake_case, as it is standard in proto files.

There would be a workaround by implementing sth. equivalent to here: nestjs/nest#9047, but I'm not a fan, since the deviation in the standard seems to be from this plugin.

Is there an option to provide the typescript interfaces in camelCase?

I also don't understand how I am the only one with this problem, should I be doing something different?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions