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

associatedtype DecodedType #87

Closed
wants to merge 6 commits into from
Closed

associatedtype DecodedType #87

wants to merge 6 commits into from

Conversation

Anviking
Copy link
Owner

@Anviking Anviking commented Apr 28, 2016

Building upon #79, this makes Decodable more similar to Argo and makes class conformance to Decodable less painful. Have not used this a lot yet, so not fully aware of the effects yet.

The following types now conform to Decodable:

  • NSArray
  • NSDictionary
  • NSURL

Waiting with possibly completing/merging this until official Swift 3 beta. "Complete generics" might also create a choice between this and other features. And, if Foundation classes are made final or the underlying JSON Deserialization is changed for a more swifty version this is most likely overkill. Personally need it now though.

Todo:

  • Fix tests
  • What to do with decodeAsOneOf

@Anviking Anviking added the hold label Apr 28, 2016
@Anviking
Copy link
Owner Author

Closing this for now as a lot of things have become structs. Could be revisited in the future though.

@Anviking Anviking closed this Jun 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant