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

Feature - Encodable Protocol #21

Merged
merged 7 commits into from
Nov 28, 2016
Merged

Conversation

cnoon
Copy link
Member

@cnoon cnoon commented Nov 21, 2016

This PR adds a new Encodable protocol that we've been using internally on various projects that really should be part of Elevate.

It makes it easy to convert model objects into JSON Any objects. There are extensions on all sensible types making it easy to convert strings, URLs, numbers, bools, etc. into JSON. There are also extensions on Array, Set and Dictionary to make it easy to support nested collections of other Encodable objects.

I added full coverage unit tests on all the types and also added multiple sections to the README detailing how to use the Encodable protocol.

@cnoon cnoon mentioned this pull request Nov 21, 2016
@EricAppel EricAppel merged commit c71f326 into master Nov 28, 2016
@cnoon cnoon deleted the feature/encodable-protocol branch December 8, 2016 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants