{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2669","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2669/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2669/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2669/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2669","id":149992920,"number":2669,"title":"[Swift] Generated SDK build fails when using request parameters of type integer in query or body","user":{"login":"fabdslv","id":6950505,"avatar_url":"https://avatars.githubusercontent.com/u/6950505?v=3","gravatar_id":"","url":"https://api.github.com/users/fabdslv","html_url":"https://github.com/fabdslv","followers_url":"https://api.github.com/users/fabdslv/followers","following_url":"https://api.github.com/users/fabdslv/following{/other_user}","gists_url":"https://api.github.com/users/fabdslv/gists{/gist_id}","starred_url":"https://api.github.com/users/fabdslv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabdslv/subscriptions","organizations_url":"https://api.github.com/users/fabdslv/orgs","repos_url":"https://api.github.com/users/fabdslv/repos","events_url":"https://api.github.com/users/fabdslv/events{/privacy}","received_events_url":"https://api.github.com/users/fabdslv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Client:%20Swift","name":"Client: Swift","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/9","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/v2.2.0","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/9/labels","id":1375944,"number":9,"title":"v2.2.0","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":133,"closed_issues":145,"state":"open","created_at":"2015-10-25T23:43:33Z","updated_at":"2016-04-21T14:20:17Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-04-21T07:39:34Z","updated_at":"2016-04-21T15:17:32Z","closed_at":"2016-04-21T14:20:17Z","body":"It is caused by the fact that `Int32` is not convertible into `AnyObject`. In the API method, the following code fails to build : \r\n\r\n```\r\npublic class func getPerson(name: String? = nil, age: Int32? = nil) -> RequestBuilder<[EntityBrief]> {\r\n       \r\n        let URLString = MyAPI.basePath + \"/person\"\r\n\r\n        let nillableParameters: [String:AnyObject?] = [\r\n            \"name\": name,\r\n            \"age\": age\r\n        ]\r\n        let parameters = APIHelper.rejectNil(nillableParameters)\r\n\r\n        let requestBuilder: RequestBuilder<[EntityBrief]>.Type = MyAPI.requestBuilderFactory.getBuilder()\r\n\r\n        return requestBuilder.init(method: \"GET\", URLString: URLString, parameters: parameters, isBody: false)\r\n    }\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/212968270","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2669#issuecomment-212968270","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2669","id":212968270,"user":{"login":"fabdslv","id":6950505,"avatar_url":"https://avatars.githubusercontent.com/u/6950505?v=3","gravatar_id":"","url":"https://api.github.com/users/fabdslv","html_url":"https://github.com/fabdslv","followers_url":"https://api.github.com/users/fabdslv/followers","following_url":"https://api.github.com/users/fabdslv/following{/other_user}","gists_url":"https://api.github.com/users/fabdslv/gists{/gist_id}","starred_url":"https://api.github.com/users/fabdslv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabdslv/subscriptions","organizations_url":"https://api.github.com/users/fabdslv/orgs","repos_url":"https://api.github.com/users/fabdslv/repos","events_url":"https://api.github.com/users/fabdslv/events{/privacy}","received_events_url":"https://api.github.com/users/fabdslv/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T15:17:32Z","updated_at":"2016-04-21T15:17:32Z","body":"@wing328 It seems to be fixed, thanks"}}