{"action":"opened","issue":{"url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/10","labels_url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/10/comments","events_url":"https://api.github.com/repos/mransan/ocaml-protoc/issues/10/events","html_url":"https://github.com/mransan/ocaml-protoc/issues/10","id":118203155,"number":10,"title":"Refactor the Encoding_util.location","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-21T15:29:55Z","updated_at":"2015-11-21T15:29:55Z","closed_at":null,"body":"`Encoding_util.location` type was introduced in #9 so that the information about the module a type belongs to can affect the generate code. \r\n\r\nThe problem is that right now in the `Ocaml_type.field` the information about the module that a `User_defined_type` belongs to is lost. One possible improvement would be to remove the `Encoding_util.location` and rather modify the `Ocaml_types.User_defined_type` constructor to contain more information about the type. (ei the name, and an optional module when it's in a separate one).\r\n"}}