{"action":"created","issue":{"url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/92","repository_url":"https://api.github.com/repos/mransan/ocaml-protoc","labels_url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/92/comments","events_url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/92/events","html_url":"https://github.com/mransan/ocaml-protoc/pull/92","id":181054761,"number":92,"title":"Allow field label to be optional as per proto3 syntax","user":{"login":"nathanielc","id":3771906,"avatar_url":"https://avatars.githubusercontent.com/u/3771906?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielc","html_url":"https://github.com/nathanielc","followers_url":"https://api.github.com/users/nathanielc/followers","following_url":"https://api.github.com/users/nathanielc/following{/other_user}","gists_url":"https://api.github.com/users/nathanielc/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielc/subscriptions","organizations_url":"https://api.github.com/users/nathanielc/orgs","repos_url":"https://api.github.com/users/nathanielc/repos","events_url":"https://api.github.com/users/nathanielc/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-05T03:03:53Z","updated_at":"2016-10-25T06:18:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mransan/ocaml-protoc/pulls/92","html_url":"https://github.com/mransan/ocaml-protoc/pull/92","diff_url":"https://github.com/mransan/ocaml-protoc/pull/92.diff","patch_url":"https://github.com/mransan/ocaml-protoc/pull/92.patch"},"body":"The protobuf version 3 syntax allows the message fields to not have a label, in which case they are considered optional fields. Example\r\n\r\n```\r\nsyntax = \"proto3\";\r\n\r\nmessage Person {\r\n  string name = 1;\r\n  int32 id = 2;\r\n  string email = 3;\r\n  repeated string phone = 4;\r\n}\r\n```\r\n\r\nThis change updates the parser to allow such messages. \r\n\r\nI couldn't figure out how to do this conditionally based on the syntax directive at the beginning of the proto file. Any pointers in the right direction would be nice."},"comment":{"url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/comments/255946599","html_url":"https://github.com/mransan/ocaml-protoc/pull/92#issuecomment-255946599","issue_url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/92","id":255946599,"user":{"login":"mransan","id":221867,"avatar_url":"https://avatars.githubusercontent.com/u/221867?v=3","gravatar_id":"","url":"https://api.github.com/users/mransan","html_url":"https://github.com/mransan","followers_url":"https://api.github.com/users/mransan/followers","following_url":"https://api.github.com/users/mransan/following{/other_user}","gists_url":"https://api.github.com/users/mransan/gists{/gist_id}","starred_url":"https://api.github.com/users/mransan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mransan/subscriptions","organizations_url":"https://api.github.com/users/mransan/orgs","repos_url":"https://api.github.com/users/mransan/repos","events_url":"https://api.github.com/users/mransan/events{/privacy}","received_events_url":"https://api.github.com/users/mransan/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T06:18:21Z","updated_at":"2016-10-25T06:18:21Z","body":"Sorry for the delay, I've been travelling recently and had little time. Will look at it very this week."}}
{"actor":{"display_login":"mransan"}}