{"action":"created","issue":{"url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/808","repository_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway","labels_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/808/comments","events_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/808/events","html_url":"https://github.com/grpc-ecosystem/grpc-gateway/issues/808","id":380655691,"node_id":"MDU6SXNzdWUzODA2NTU2OTE=","number":808,"title":"Unable to add protobuf wrappers in url template option","user":{"login":"mayank-dixit","id":16552720,"node_id":"MDQ6VXNlcjE2NTUyNzIw","avatar_url":"https://avatars3.githubusercontent.com/u/16552720?v=4","gravatar_id":"","url":"https://api.github.com/users/mayank-dixit","html_url":"https://github.com/mayank-dixit","followers_url":"https://api.github.com/users/mayank-dixit/followers","following_url":"https://api.github.com/users/mayank-dixit/following{/other_user}","gists_url":"https://api.github.com/users/mayank-dixit/gists{/gist_id}","starred_url":"https://api.github.com/users/mayank-dixit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayank-dixit/subscriptions","organizations_url":"https://api.github.com/users/mayank-dixit/orgs","repos_url":"https://api.github.com/users/mayank-dixit/repos","events_url":"https://api.github.com/users/mayank-dixit/events{/privacy}","received_events_url":"https://api.github.com/users/mayank-dixit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-11-14T11:28:48Z","updated_at":"2018-11-15T17:21:24Z","closed_at":null,"author_association":"NONE","body":"## Pre\r\n1. Using string value from: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto\r\n2. protoc version: 3.6.1\r\n\r\n## Steps\r\nMy proto file looks like this:\r\n>[helloworld.proto](https://github.com/mayank-dixit/examples/blob/master/grpc-gateway/protobuf-wrappers-in-url-template/helloworld.proto)\r\n```\r\nsyntax = \"proto3\";\r\n\r\npackage helloworld;\r\n\r\nimport \"google/api/annotations.proto\";\r\nimport \"google/protobuf/wrappers.proto\";\r\n\r\nservice Greeter {\r\n  rpc SayHello (HelloRequest) returns (HelloReply) {\r\n    option (google.api.http) = {\r\n      get: \"/say/{strVal}\"\r\n    };\r\n  }\r\n}\r\n\r\nmessage HelloRequest {\r\n  google.protobuf.StringValue strVal = 5;\r\n}\r\n\r\nmessage HelloReply {\r\n  string message = 1;\r\n}\r\n\r\n```\r\n\r\nAnd then I try compile protos:\r\n```\r\nprotoc -I/usr/local/include -I. \\\r\n  -I$GOPATH/src \\\r\n  -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \\\r\n  --go_out=plugins=grpc:. \\\r\n  helloworld/helloworld.proto\r\n```\r\nWorks fine. And then I try to generate reverse proxy using:\r\n```\r\nprotoc -I/usr/local/include -I. \\\r\n  -I$GOPATH/src \\\r\n  -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \\\r\n  --grpc-gateway_out=logtostderr=true:. \\\r\n  helloworld/helloworld.proto\r\n```\r\n\r\n### expected:\r\nSuccessful compilation\r\n\r\n### result: \r\n```\r\n--grpc-gateway_out: aggregate type TYPE_MESSAGE in parameter of Greeter.SayHello: strVal\r\n```"},"comment":{"url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/comments/439120086","html_url":"https://github.com/grpc-ecosystem/grpc-gateway/issues/808#issuecomment-439120086","issue_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/808","id":439120086,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTEyMDA4Ng==","user":{"login":"johanbrandhorst","id":6604151,"node_id":"MDQ6VXNlcjY2MDQxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/6604151?v=4","gravatar_id":"","url":"https://api.github.com/users/johanbrandhorst","html_url":"https://github.com/johanbrandhorst","followers_url":"https://api.github.com/users/johanbrandhorst/followers","following_url":"https://api.github.com/users/johanbrandhorst/following{/other_user}","gists_url":"https://api.github.com/users/johanbrandhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/johanbrandhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanbrandhorst/subscriptions","organizations_url":"https://api.github.com/users/johanbrandhorst/orgs","repos_url":"https://api.github.com/users/johanbrandhorst/repos","events_url":"https://api.github.com/users/johanbrandhorst/events{/privacy}","received_events_url":"https://api.github.com/users/johanbrandhorst/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T17:21:24Z","updated_at":"2018-11-15T17:21:24Z","author_association":"COLLABORATOR","body":"Reopening as there's definitely a problem with the current code, see https://github.com/grpc-ecosystem/grpc-gateway/pull/809#discussion_r233921470"}}
{"actor":{"display_login":"johanbrandhorst"}}