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

Arrays of objects are not allowed in http url query parameters #108

Open
dergus opened this issue Aug 25, 2022 · 0 comments
Open

Arrays of objects are not allowed in http url query parameters #108

dergus opened this issue Aug 25, 2022 · 0 comments

Comments

@dergus
Copy link

dergus commented Aug 25, 2022

For example an RPC like this

service MapService {
  rpc Search(SearchRequest) returns (SearchResponse) {
    option (google.api.http) = {
      get: "/v1/search"
    };
  }
}

message SearchRequest{
  repeated Coordinate polygon = 1;
}

message Coordinate {
  float lat = 1;
  float lon = 2;
}

is expected to be callable using http protocol in the following manner: https://example.com/v1/search?polygon[0][lat]=55.11&polygon[0][lon]=55.22 but at the moment fields with repeated custom messages are just ignored from generated http server and swagger spec.

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

No branches or pull requests

1 participant