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
We are using grpc-transcode plugin to interact with gRPC apis through HTTP and we are using protobuf proto3 standard. Our proto looks something like below
the response we are expecting is {"my-hello": "world"} but we are getting {"hello": "world"}. I went through the proto.lua file and didn't find that we are parsing the response into the field name as mentioned in json_name. I believe that's because the json_name standard implementation is missing in Apisix.
Please don't mind the title of this discussion I posted so since I am not sure what other Protobuf standards are missing.
For now Is there a workaround for now?
P.S. While browsing for a solution I found a Protobuf lua implementation at lua-protobuf I believe this would be helpful. Also Protobuf docs for json_name.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are using grpc-transcode plugin to interact with gRPC apis through HTTP and we are using protobuf proto3 standard. Our proto looks something like below
the response we are expecting is
{"my-hello": "world"}
but we are getting{"hello": "world"}
. I went through the proto.lua file and didn't find that we are parsing the response into the field name as mentioned injson_name
. I believe that's because thejson_name
standard implementation is missing in Apisix.Please don't mind the title of this discussion I posted so since I am not sure what other Protobuf standards are missing.
For now Is there a workaround for now?
P.S. While browsing for a solution I found a Protobuf lua implementation at lua-protobuf I believe this would be helpful. Also Protobuf docs for
json_name
.Beta Was this translation helpful? Give feedback.
All reactions