You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh I think #314 is actually the same issue. That issue shows it was fixed in release 1.2.0 correct? I am using whatever the latest is from go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway ... does that lag behind?
An example request would look like this:
enum Field {
FOO = 0;
BAR = 1;
}
message FooRequest {
Field which_field = 1;
}
service Foo {
rpc FooCall (FooRequest) returns (FooResponse) {
option (google.api.http) = {
get: "/api/foo"
};
}
}
curl localhost/api/foo?which_field=BAR
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If you have an enum type in a gRPC request object, and you pass an enum value as a string as a query parameter, you get:
The generated Swagger passes the enum values as strings not integers, which leads to this error when using a Swagger generated client as well.
The text was updated successfully, but these errors were encountered: