-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
oneof fields are not supported as the "body"? #413
Labels
Comments
yugui
added a commit
that referenced
this issue
Jun 17, 2017
yugui
added a commit
that referenced
this issue
Jun 17, 2017
abronan
pushed a commit
to abronan/grpc-gateway
that referenced
this issue
Mar 7, 2018
See #570 |
Tommy-42
pushed a commit
to Tommy-42/grpc-gateway
that referenced
this issue
Sep 26, 2018
Tommy-42
pushed a commit
to Tommy-42/grpc-gateway
that referenced
this issue
Sep 26, 2018
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hi,
Here's a short sample of proto input:
It successfully generates the
pb.gw.go
file, butgo build
fails as:The related line looks like:
The generated go type has the name of field as
Payload
(the name of oneof) rather than individual oneof names, and that field acceptsFooRequest_Msg
orFooRequest_Str
type. Maybe the codegen can't deal with oneof fields in the body parameter?The text was updated successfully, but these errors were encountered: