You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like you're trying to file a bug against the proto-gen-ts project. Unfortunately this is the grpc-gateway project. Closing this bug since it is unrelated to this project, but if I'm wrong please reopen and we can discuss the interaction of grpc-gateway.
Hey @achew22 just wondering, isn't this something the gateway can handle? i.e. the JSON transcoding of
message FooResponse {
repeated int foo = 1;
}
Should have an option of matching the generated protobufs so that it looks like { fooList: [1, 2, 3] } instead of { foo: [1, 2, 3] }? What do you think?
Hi @rauljordan, I think that option would not be something we want to support, since it's not using any of the official protobuf JSON names. I would sooner suggest you find some way to remove the List suffix in your JSON (and it looks like you've raised an issue).
📚 Documentation
Hi all, currently I have this protobuf:
Which gets compiled into the following typescript definition using proto-gen-ts
I want to be able to use this type in my front-end, but the JSON data returned by my grpc-gateway looks like this:
Instead of the expected
Any way around this? Would I need to implement a custom marshaler just to achieve this desired result?
The text was updated successfully, but these errors were encountered: