Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change APIReturnable to be a simple wrapper around decodable #6

Open
rauhul opened this issue Jan 1, 2018 · 0 comments
Open

Change APIReturnable to be a simple wrapper around decodable #6

rauhul opened this issue Jan 1, 2018 · 0 comments
Assignees

Comments

@rauhul
Copy link
Owner

rauhul commented Jan 1, 2018

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 rauhul self-assigned this Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant