{"action":"opened","issue":{"url":"https://api.github.com/repos/nknotts/dccl/issues/15","labels_url":"https://api.github.com/repos/nknotts/dccl/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/nknotts/dccl/issues/15/comments","events_url":"https://api.github.com/repos/nknotts/dccl/issues/15/events","html_url":"https://github.com/nknotts/dccl/issues/15","id":54441926,"number":15,"title":"optional repeated message fields not encoded if no children are set","user":{"login":"nknotts","id":5288782,"avatar_url":"https://avatars.githubusercontent.com/u/5288782?v=3","gravatar_id":"","url":"https://api.github.com/users/nknotts","html_url":"https://github.com/nknotts","followers_url":"https://api.github.com/users/nknotts/followers","following_url":"https://api.github.com/users/nknotts/following{/other_user}","gists_url":"https://api.github.com/users/nknotts/gists{/gist_id}","starred_url":"https://api.github.com/users/nknotts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nknotts/subscriptions","organizations_url":"https://api.github.com/users/nknotts/orgs","repos_url":"https://api.github.com/users/nknotts/repos","events_url":"https://api.github.com/users/nknotts/events{/privacy}","received_events_url":"https://api.github.com/users/nknotts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nknotts/dccl/labels/New","name":"New","color":"ddffdd"},{"url":"https://api.github.com/repos/nknotts/dccl/labels/Undecided","name":"Undecided","color":"ffdddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-15T12:04:46Z","updated_at":"2015-01-15T12:04:46Z","closed_at":null,"body":"Take the following message:\n\nmessage Parent\n{\n  option (dccl.msg).max_bytes = 0x4000;\n  option (dccl.msg).id = 126;\n\n  // set to absolute value, if different\n  repeated Child children = 5 [(dccl.field).max_repeat = 32];  \n\n  message Child\n  {\n    optional int32 desired_runid = 4 [(dccl.field) = { min: 0 max: 2048 codec: \"presence_bit\"} ];\n    optional bool force_quit = 5;\n    optional int32 some_id = 6 [(dccl.field) = { min: 0 max: 0x7FFFFFFE codec: \"presence_bit\" } ];\n  }\n}\n\nIf some children are defined (using \"add_children()\") but no fields within the Child are set, the children repeated field on receipt does not contain these empty children."}}