{"action":"created","issue":{"url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/93","repository_url":"https://api.github.com/repos/bustoutsolutions/siesta","labels_url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/93/comments","events_url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/93/events","html_url":"https://github.com/bustoutsolutions/siesta/issues/93","id":170474566,"number":93,"title":"Error when trying siesta with Argo","user":{"login":"onekiloparsec","id":226224,"avatar_url":"https://avatars.githubusercontent.com/u/226224?v=3","gravatar_id":"","url":"https://api.github.com/users/onekiloparsec","html_url":"https://github.com/onekiloparsec","followers_url":"https://api.github.com/users/onekiloparsec/followers","following_url":"https://api.github.com/users/onekiloparsec/following{/other_user}","gists_url":"https://api.github.com/users/onekiloparsec/gists{/gist_id}","starred_url":"https://api.github.com/users/onekiloparsec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onekiloparsec/subscriptions","organizations_url":"https://api.github.com/users/onekiloparsec/orgs","repos_url":"https://api.github.com/users/onekiloparsec/repos","events_url":"https://api.github.com/users/onekiloparsec/events{/privacy}","received_events_url":"https://api.github.com/users/onekiloparsec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-10T17:35:17Z","updated_at":"2016-08-17T12:08:17Z","closed_at":null,"body":"Hi Paul, \r\n\r\nI'm diving even deeper into siesta, and I try to make it work with [Argo](https://github.com/thoughtbot/Argo). But I get an error I couldn't work around. That's maybe not an issue, but merely my own failure to grasp all the details involved here, especially with the siesta blocks arguments.\r\n\r\nHere is the code, in my subclass of `Service`:\r\n\r\n```\r\n    public init(withAPIVersion version: String = \"1\") {\r\n        self.APIVersion = version\r\n        super.init(baseURL: \"http://api.arcsecond.io\")\r\n        \r\n        self.configureTransformer(\"/\\(self.APIVersion)/objects/*\") {\r\n            decode($0.content) as AstronomicalObject\r\n        }\r\n    }\r\n```\r\nI get the following at the line `self.configureTransformer...`: \r\n>  Cannot invoke 'configureTransformer' with an argument list of type '(String, (_) -> _)'\r\n\r\nThe code for `AstronomicalObject` follows the exact same example given by Argo, in its simplest form:\r\n\r\n```\r\npublic struct AstronomicalObject {\r\n    public let name: String\r\n}\r\n\r\npublic extension AstronomicalObject: Decodable {\r\n    public static func decode(json: JSON) -> Decoded<AstronomicalObject> {\r\n        return curry(AstronomicalObject.init)\r\n            <^> json <| \"name\"\r\n    }\r\n}\r\n```\r\n\r\nI don't get this error when writing a \"normal\" init method for my struct, taking the `json` as parameter and doing all the parsing myself. But my goal is to use Argo precisely for that.\r\n\r\nAny idea? Thanks in advance!"},"comment":{"url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/comments/240392288","html_url":"https://github.com/bustoutsolutions/siesta/issues/93#issuecomment-240392288","issue_url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/93","id":240392288,"user":{"login":"onekiloparsec","id":226224,"avatar_url":"https://avatars.githubusercontent.com/u/226224?v=3","gravatar_id":"","url":"https://api.github.com/users/onekiloparsec","html_url":"https://github.com/onekiloparsec","followers_url":"https://api.github.com/users/onekiloparsec/followers","following_url":"https://api.github.com/users/onekiloparsec/following{/other_user}","gists_url":"https://api.github.com/users/onekiloparsec/gists{/gist_id}","starred_url":"https://api.github.com/users/onekiloparsec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onekiloparsec/subscriptions","organizations_url":"https://api.github.com/users/onekiloparsec/orgs","repos_url":"https://api.github.com/users/onekiloparsec/repos","events_url":"https://api.github.com/users/onekiloparsec/events{/privacy}","received_events_url":"https://api.github.com/users/onekiloparsec/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T12:08:17Z","updated_at":"2016-08-17T12:08:17Z","body":"@pcantrell Sorry for the delay. The short answer is no. But I wanted to make a detailed answer after investigating a bit more."}}
{"actor":{"display_login":"onekiloparsec"}}