{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2406","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2406/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2406/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2406/events","html_url":"https://github.com/swagger-api/swagger-codegen/pull/2406","id":141777725,"number":2406,"title":"SwiftCodegen : change typeMapping for 'long' (Int64 instead of Int).","user":{"login":"kenjitayama","id":48171,"avatar_url":"https://avatars.githubusercontent.com/u/48171?v=3","gravatar_id":"","url":"https://api.github.com/users/kenjitayama","html_url":"https://github.com/kenjitayama","followers_url":"https://api.github.com/users/kenjitayama/followers","following_url":"https://api.github.com/users/kenjitayama/following{/other_user}","gists_url":"https://api.github.com/users/kenjitayama/gists{/gist_id}","starred_url":"https://api.github.com/users/kenjitayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenjitayama/subscriptions","organizations_url":"https://api.github.com/users/kenjitayama/orgs","repos_url":"https://api.github.com/users/kenjitayama/repos","events_url":"https://api.github.com/users/kenjitayama/events{/privacy}","received_events_url":"https://api.github.com/users/kenjitayama/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Client:%20Swift","name":"Client: Swift","color":"fad8c7"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Enhancement","name":"Enhancement","color":"e5ffe5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/5","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/Future","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/5/labels","id":913962,"number":5,"title":"Future","description":"","creator":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"open_issues":96,"closed_issues":34,"state":"open","created_at":"2014-12-24T05:48:44Z","updated_at":"2016-03-18T07:45:45Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-03-18T05:11:41Z","updated_at":"2016-03-18T20:58:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/2406","html_url":"https://github.com/swagger-api/swagger-codegen/pull/2406","diff_url":"https://github.com/swagger-api/swagger-codegen/pull/2406.diff","patch_url":"https://github.com/swagger-api/swagger-codegen/pull/2406.patch"},"body":"`long` should be mapped to Int64 instead of Int, because `long` will have a range of signed 64 bits.\r\n\r\nFollowing the recommendation of the [Swift Doc](https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html), fixing only the mapping for `long` is necessary and sufficient.\r\n\r\n```\r\nInt\r\n\r\nIn most cases, you don’t need to pick a specific size of integer to use in your code. Swift provides an additional integer type, Int, which has the same size as the current platform’s native word size:\r\n\r\nOn a 32-bit platform, Int is the same size as Int32.\r\nOn a 64-bit platform, Int is the same size as Int64.\r\nUnless you need to work with a specific size of integer, always use Int for integer values in your code. This aids code consistency and interoperability. Even on 32-bit platforms, Int can store any value between -2,147,483,648 and 2,147,483,647, and is large enough for many integer ranges.\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/198540377","html_url":"https://github.com/swagger-api/swagger-codegen/pull/2406#issuecomment-198540377","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2406","id":198540377,"user":{"login":"cjolif","id":623171,"avatar_url":"https://avatars.githubusercontent.com/u/623171?v=3","gravatar_id":"","url":"https://api.github.com/users/cjolif","html_url":"https://github.com/cjolif","followers_url":"https://api.github.com/users/cjolif/followers","following_url":"https://api.github.com/users/cjolif/following{/other_user}","gists_url":"https://api.github.com/users/cjolif/gists{/gist_id}","starred_url":"https://api.github.com/users/cjolif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjolif/subscriptions","organizations_url":"https://api.github.com/users/cjolif/orgs","repos_url":"https://api.github.com/users/cjolif/repos","events_url":"https://api.github.com/users/cjolif/events{/privacy}","received_events_url":"https://api.github.com/users/cjolif/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T20:58:35Z","updated_at":"2016-03-18T20:58:35Z","body":"I'll try to find time to propose a PR that does take that into account. But no promise on when."}}