{"action":"created","issue":{"url":"https://api.github.com/repos/gogo/protobuf/issues/238","repository_url":"https://api.github.com/repos/gogo/protobuf","labels_url":"https://api.github.com/repos/gogo/protobuf/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/gogo/protobuf/issues/238/comments","events_url":"https://api.github.com/repos/gogo/protobuf/issues/238/events","html_url":"https://github.com/gogo/protobuf/issues/238","id":194427609,"number":238,"title":"NULL deserialization of Oneof when using GRPC","user":{"login":"buckhx","id":314727,"avatar_url":"https://avatars.githubusercontent.com/u/314727?v=3","gravatar_id":"","url":"https://api.github.com/users/buckhx","html_url":"https://github.com/buckhx","followers_url":"https://api.github.com/users/buckhx/followers","following_url":"https://api.github.com/users/buckhx/following{/other_user}","gists_url":"https://api.github.com/users/buckhx/gists{/gist_id}","starred_url":"https://api.github.com/users/buckhx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckhx/subscriptions","organizations_url":"https://api.github.com/users/buckhx/orgs","repos_url":"https://api.github.com/users/buckhx/repos","events_url":"https://api.github.com/users/buckhx/events{/privacy}","received_events_url":"https://api.github.com/users/buckhx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-12-08T19:50:29Z","updated_at":"2017-01-04T18:45:42Z","closed_at":"2017-01-04T18:45:42Z","body":"A message with a oneof is not properly serializing using GRPC. \r\n\r\nHere's an example of the a json-encoded message payload before it is written and then after is is read. I encountered this having a client send a message to a GRPC method and the oneof be null on the server.\r\n```\r\nWRITE: {\r\n\t\"label\": \"test\",\r\n\t\"contact\": {\r\n\t\t\"email\": \"test@email.net\"\r\n\t},\r\n\t\"created\": {\r\n\t\t\"seconds\": 1481225819,\r\n\t\t\"nanos\": 422943804\r\n\t},\r\n\t\"Entity\": {\r\n\t\t\"Person\": {\r\n\t\t\t\"name\": {\r\n\t\t\t\t\"first\": \"test\",\r\n\t\t\t\t\"last\": \"user\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\nREAD: {\r\n\t\"label\": \"test\",\r\n\t\"contact\": {\r\n\t\t\"email\": \"test@email.net\"\r\n\t},\r\n\t\"created\": {\r\n\t\t\"seconds\": 1481225819,\r\n\t\t\"nanos\": 422943804\r\n\t},\r\n\t\"Entity\": null\r\n}\r\n```\r\n\r\nI'm sure this could be replicated w/out GRPC for easy debugging.\r\n\r\nSwitching to golang/protobuf has proper oneof serialization"},"comment":{"url":"https://api.github.com/repos/gogo/protobuf/issues/comments/270451352","html_url":"https://github.com/gogo/protobuf/issues/238#issuecomment-270451352","issue_url":"https://api.github.com/repos/gogo/protobuf/issues/238","id":270451352,"user":{"login":"awalterschulze","id":1829933,"avatar_url":"https://avatars.githubusercontent.com/u/1829933?v=3","gravatar_id":"","url":"https://api.github.com/users/awalterschulze","html_url":"https://github.com/awalterschulze","followers_url":"https://api.github.com/users/awalterschulze/followers","following_url":"https://api.github.com/users/awalterschulze/following{/other_user}","gists_url":"https://api.github.com/users/awalterschulze/gists{/gist_id}","starred_url":"https://api.github.com/users/awalterschulze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awalterschulze/subscriptions","organizations_url":"https://api.github.com/users/awalterschulze/orgs","repos_url":"https://api.github.com/users/awalterschulze/repos","events_url":"https://api.github.com/users/awalterschulze/events{/privacy}","received_events_url":"https://api.github.com/users/awalterschulze/received_events","type":"User","site_admin":false},"created_at":"2017-01-04T18:45:42Z","updated_at":"2017-01-04T18:45:42Z","body":"I assume my answer fixed this issue, otherwise please reopen"}}
{"actor":{"display_login":"awalterschulze"}}