api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

Change APIReturnable to be a simple wrapper around decodable

Open rauhul opened this issue 8 years ago • 0 comments

Since Decodable is swift's goto protocol for object serialization, it doesn't make sense for APIReturnable to require implementation beyond Decodable. The only additional information needed to convert from Data to the desired object is a Decoder, which should be the only property required for class to be decodable.

rauhul avatar Jan 01 '18 03:01 rauhul