Closed atreya2011 closed 3 years ago
hmm. there are supposed to be tests covering it but not sure how it failed, which concerns me. I'll take a look at this. Thanks for reporting. will let you know soon @atreya2011
Likewise, thank you for making this excellent plugin! 🙇🏼 I have fixed this locally and make a PR on this 🙏🏼
Thanks for being so passionate about this project. The fix itself is easy but I would like to adjust the test to catch this problem as well. That's why I prefer to take a look and let you know soon @atreya2011
I see the support for HTTP Patch
is in the PR as well. Much appreciate the contribution but I think it would be better in it's own PR.
Understood. Thank you very much! I will make a different PR for the HTTP Patch fix.
And this is just the plugin I was looking for because I have the same pain points that you mentioned in this blog post 👇🏼 https://cashapp.github.io/2021-03-26/protoc-gen-grpc-gateway-ts-clean-idiomatic-typescript-for-grpc-gateway
Given a proto file with the following annotation and fieldname for
GetUserRequest
:generates the following TypeScript:
Which throws a type error because of
/api/v1/user/${req["user_id"]}
asuser_id
does not exist in the generated type definition forGetUserRequest
I have fixed this locally. Is it ok to create a PR?