{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/438","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/438/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/438/events","html_url":"https://github.com/Alamofire/Alamofire/issues/438","id":68898823,"number":438,"title":"Type 'X' does not conform to protocol 'ResponseObjectSerializable'","user":{"login":"sarunw","id":795368,"avatar_url":"https://avatars.githubusercontent.com/u/795368?v=3","gravatar_id":"","url":"https://api.github.com/users/sarunw","html_url":"https://github.com/sarunw","followers_url":"https://api.github.com/users/sarunw/followers","following_url":"https://api.github.com/users/sarunw/following{/other_user}","gists_url":"https://api.github.com/users/sarunw/gists{/gist_id}","starred_url":"https://api.github.com/users/sarunw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarunw/subscriptions","organizations_url":"https://api.github.com/users/sarunw/orgs","repos_url":"https://api.github.com/users/sarunw/repos","events_url":"https://api.github.com/users/sarunw/events{/privacy}","received_events_url":"https://api.github.com/users/sarunw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T10:55:53Z","updated_at":"2015-04-17T15:43:50Z","closed_at":null,"body":"I follow Response Serialization and create protocol and extension\r\n```\r\n@objc public protocol ResponseObjectSerializable {\r\n    init?(response: NSHTTPURLResponse, representation: AnyObject)\r\n}\r\n\r\nextension Alamofire.Request {\r\n    public func responseObject<T: ResponseObjectSerializable>(completionHandler: (NSURLRequest, NSHTTPURLResponse?, T?, NSError?) -> Void) -> Self {\r\n        let serializer: Serializer = { (request, response, data) in\r\n            let JSONSerializer = Request.JSONResponseSerializer(options: .AllowFragments)\r\n            let (JSON: AnyObject?, serializationError) = JSONSerializer(request, response, data)\r\n            if response != nil && JSON != nil {\r\n                return (T(response: response!, representation: JSON!), nil)\r\n            } else {\r\n                return (nil, serializationError)\r\n            }\r\n        }\r\n        \r\n        return response(serializer: serializer, completionHandler: { (request, response, object, error) in\r\n            completionHandler(request, response, object as? T, error)\r\n        })\r\n    }\r\n}\r\n```\r\n\r\nbut when I try to conform it I got this error Type 'my_model_class' does not conform to protocol 'ResponseObjectSerializable'\r\n\r\nMy model is just a bare-bone class\r\n```\r\nfinal class Shot: ResponseObjectSerializable {\r\n    required init?(response: NSHTTPURLResponse, representation: AnyObject) {\r\n    }\r\n}\r\n```\r\n\r\nUse this with Xcode 6.3, anyone experienced this?"},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/94012345","html_url":"https://github.com/Alamofire/Alamofire/issues/438#issuecomment-94012345","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/438","id":94012345,"user":{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T15:43:50Z","updated_at":"2015-04-17T15:43:50Z","body":"Thanks. If the StackOverflow thread ends up finding an issue with the README, please submit a pull request with the necessary updates. Cheers."}}