Sorry for being unclear, I actually I just tried this https://github.com/ishkawa/APIKit (Your pull request to use it in combination with Himotoki).
I just used the example there, and it get stuck on this:
func responseFromObject(object: AnyObject, URLResponse: NSHTTPURLResponse) -> Response? {
return decode(object) // get Response from AnyObject using Himotoki
}
With latest I actually meant 7.0 from the AppStore.
responseFromObject
: return try? decode(object)
decode
needs to return Self
instead of NSDate
and I can't currently wrap my head around why this is. I checked your code multiple times but as far as I can see it should still work .. maybe you people are able to give me a hint?
line: (e <| "line").map { (e: Extractor) throws -> SegmentLine in
let style = try String.decode(e.value("style"))
return try (style == "sold" ? SolidSegmentLine.decode(e) : ThroughLineSegmentLine.decode(e))
}
(e <| "line")
is not an array