{"action":"created","issue":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/17","labels_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/17/comments","events_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/17/events","html_url":"https://github.com/michaeledgar/protobuf-net/issues/17","id":58233069,"number":17,"title":"Support Generation of Enum Proto Files","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-19T16:40:15Z","updated_at":"2015-02-19T16:40:17Z","closed_at":null,"body":"```\nAn enum and class pair, properly annotated with ProtoContractAttribute and\nProtoEnumAttribute, will correctly serialize and deserialize.  However, one\ncannot generate a .proto file for the enum using the\nSerializer.GetProto<T>() method because T is constrained only to classes. \nThat would be okay if the Serializer.GetProto<T>() method would detect the\nenum type while generating the .proto for the containing class, and dump it\nout automatically; but that is not the case.\n\n\n\n\n```\n\n-----\nOriginal issue reported on code.google.com by `brian.c....@gmail.com` on 19 Aug 2008 at 1:08"},"comment":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/comments/75085798","html_url":"https://github.com/michaeledgar/protobuf-net/issues/17#issuecomment-75085798","issue_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/17","id":75085798,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T16:40:17Z","updated_at":"2015-02-19T16:40:17Z","body":"```\nLooks great!  Thanks!\n```\n\n-----\nOriginal comment by `brian.c....@gmail.com` on 20 Aug 2008 at 6:53"}}