grpc / grpc/grpc-node

Ability to prevent field rewriting option for the "grpc-tools"

Open
#1,537 1 comment 0 reactions 0 assignees View on GitHub
package: grpc-tools
Dominant language
TypeScript
Stars
4.8k
Forks
716
Avg merge
2d 3h
Merged PRs (30d)
10

Description

### Is your feature request related to a problem? Please describe.
For the generated models by the `grpc-tools` javascript will contain the `toObject` method.
We noticed that by default it has the following behavior:
- `my_prop` will be converted to `myProp`
- `repeated Users users = 1;` will be converted to `usersList`

### Describe the solution you'd like
Please correct me if we missed something, but it would be great to introduce such kind of option like `--keepFieldsNames` to save the original names from proto.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.