lua-protobuf icon indicating copy to clipboard operation
lua-protobuf copied to clipboard

The struct type is not supported

Open gaoxingliang opened this issue 2 years ago • 1 comments

In the apisix grpc-transcode plugin, I found the protobuf.Struct is not supported.

https://github.com/apache/apisix/issues/8655#issuecomment-1378460282

I use the Struct to indicate a JsonObject input parameter. A message like below:

--- the request part
message RawRequest {
  google.protobuf.Struct reqdata = 1;
  string type = 2;
  string serviceurl = 3;
  string source = 4;
  int32 page = 5;
  int32 size = 6;
}

while when decoding, the reqdata is empty (not null)

Can I workaround this?

gaoxingliang avatar Jan 11 '23 11:01 gaoxingliang

you could use hooks to manipulate the google well-known types yourself.

starwing avatar Jul 19 '23 12:07 starwing