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

Request to proto3 service with optional fails #310

Closed
jbub opened this issue Sep 13, 2021 · 0 comments · Fixed by #309
Closed

Request to proto3 service with optional fails #310

jbub opened this issue Sep 13, 2021 · 0 comments · Fixed by #309

Comments

@jbub
Copy link
Contributor

jbub commented Sep 13, 2021

Proto file(s)

syntax = "proto3";

package helloworld;

service OptionalGreeter {
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

// The request message containing the user's name.
message HelloRequest {
  optional string name = 1;
}

// The response message containing the greetings
message HelloReply {
  string message = 1;
}

Command line arguments / config
List all command line arguments or config properties

Describe the bug
When calling proto3 service which contains optional field, it fails with field has label LABEL_OPTIONAL, but proto3 must omit labels other than 'repeated'.

To Reproduce
Use proto above and make a call to HelloRequest.

Expected behavior
Request succeeds.

Environment

  • OS: darwin/arm64
  • ghz: 0.102.0
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

Successfully merging a pull request may close this issue.

1 participant