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

nestJs=true incorrect type generation for proto fields with numbers #1079

Open
hersentino opened this issue Jul 25, 2024 · 0 comments
Open

Comments

@hersentino
Copy link
Contributor

With nestjs option, if .proto like this :

message TestUnaryRequest {
    string message_test_30_100 = 1;
    string message_test = 2;
}

message_test_30_100 will become messageTest30100 inside generated proto:

interface TestUnaryRequest {
  messageTest30100: string;
  messageTest: string;
}

However, it should be messageTest_30_100 in order to work correctly with the NestJS gRPC server. The generated types are wrong.

I have created a reproducible example in this repo : https://github.com/hersentino/ts-proto-issue

@hersentino hersentino changed the title nestjs=true incorrect type generation for proto fields with numbers nestJs=true incorrect type generation for proto fields with numbers Jul 25, 2024
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