{"action":"created","issue":{"url":"https://api.github.com/repos/mzaks/FlatBuffersSwift/issues/15","repository_url":"https://api.github.com/repos/mzaks/FlatBuffersSwift","labels_url":"https://api.github.com/repos/mzaks/FlatBuffersSwift/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/mzaks/FlatBuffersSwift/issues/15/comments","events_url":"https://api.github.com/repos/mzaks/FlatBuffersSwift/issues/15/events","html_url":"https://github.com/mzaks/FlatBuffersSwift/issues/15","id":136976022,"number":15,"title":"Support namespaces","user":{"login":"mzaks","id":347106,"avatar_url":"https://avatars.githubusercontent.com/u/347106?v=3","gravatar_id":"","url":"https://api.github.com/users/mzaks","html_url":"https://github.com/mzaks","followers_url":"https://api.github.com/users/mzaks/followers","following_url":"https://api.github.com/users/mzaks/following{/other_user}","gists_url":"https://api.github.com/users/mzaks/gists{/gist_id}","starred_url":"https://api.github.com/users/mzaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzaks/subscriptions","organizations_url":"https://api.github.com/users/mzaks/orgs","repos_url":"https://api.github.com/users/mzaks/repos","events_url":"https://api.github.com/users/mzaks/events{/privacy}","received_events_url":"https://api.github.com/users/mzaks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mzaks/FlatBuffersSwift/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-27T22:29:13Z","updated_at":"2016-04-30T10:21:15Z","closed_at":null,"body":"This feature will also make it possible to include all infrastructure code inside the generated file.\r\nThis way users don't have to include FlatBuffersSwift module, generating code will be self sufficient."},"comment":{"url":"https://api.github.com/repos/mzaks/FlatBuffersSwift/issues/comments/215952020","html_url":"https://github.com/mzaks/FlatBuffersSwift/issues/15#issuecomment-215952020","issue_url":"https://api.github.com/repos/mzaks/FlatBuffersSwift/issues/15","id":215952020,"user":{"login":"mzaks","id":347106,"avatar_url":"https://avatars.githubusercontent.com/u/347106?v=3","gravatar_id":"","url":"https://api.github.com/users/mzaks","html_url":"https://github.com/mzaks","followers_url":"https://api.github.com/users/mzaks/followers","following_url":"https://api.github.com/users/mzaks/following{/other_user}","gists_url":"https://api.github.com/users/mzaks/gists{/gist_id}","starred_url":"https://api.github.com/users/mzaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzaks/subscriptions","organizations_url":"https://api.github.com/users/mzaks/orgs","repos_url":"https://api.github.com/users/mzaks/repos","events_url":"https://api.github.com/users/mzaks/events{/privacy}","received_events_url":"https://api.github.com/users/mzaks/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T10:21:15Z","updated_at":"2016-04-30T10:21:15Z","body":"Sadly Swift doesn't let me :)\r\nDeclaration of protocols typealias and extension has to be on file level and can't be wrapped inside of an enum for example. This way `Scalar` and `Offset` has to be outside of the namespace and when generated, it will be duplicated. This is why for now I decided to solve it as described in #23 \r\nSo as user you can decide if you want to import the lib or include it for the first file and than exclude it for the later once. Not a beauty, but let's see maybe with time we get a better idea, or Swift adds some support for internal protocol definition. Btw. I also added \r\nhttps://github.com/mzaks/FlatBuffersSwift/blob/master/generate.sh\r\nTo being able to generate code before the Performance test build but today at 2 A.M. didn't manage to make XCode execute the shell script."}}