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

The struct type is not supported #236

Open
gaoxingliang opened this issue Jan 11, 2023 · 1 comment
Open

The struct type is not supported #236

gaoxingliang opened this issue Jan 11, 2023 · 1 comment
Labels

Comments

@gaoxingliang
Copy link

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

apache/apisix#8655 (comment)

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?

@starwing
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants