-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Need to support more Codable types and support PropertyList coders #27
Comments
Thanks for you types. I re-implemented it to support "exact type", which is that types like Already passed the test using the types you mentioned above, except You can check it out here.
|
I've checked some structures presented by Foundation framework, and tested them.
There are JSON coders and _PropertyList coders in Foundation framework, so I tested them on JSONEncoder and PropertyListEncoder using this simple script.
And results are below:
AnyEncodable<Array<Int>>
Array
AnyEncodable<Calendar>
Calendar
AnyEncodable<CharacterSet>
CharacterSet
AnyEncodable<Data>
Data
AnyEncodable<Date>
Date
AnyEncodable<DateInterval>
DateInterval
AnyEncodable<NSDecimal>
NSDecimal
AnyEncodable<Dictionary<String, Int>>
Dictionary<String, Int>
AnyEncodable<IndexPath>
IndexPath
AnyEncodable<IndexSet>
IndexSet
AnyEncodable<Locale>
Locale
AnyEncodable<Set<Int>>
Set<Int>
AnyEncodable<String>
String
AnyEncodable<TimeZone>
TimeZone
AnyEncodable<URL>
URL
AnyEncodable<UUID>
UUID
According to results, AnyCodable doesn't cover some major types, and it doesn't support PropertyList coders completely.
The text was updated successfully, but these errors were encountered: