We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When dictionary contains an NSNumber as 0 or 1, encodable method is mapping to true or false because 0 or 1 is also a boolean for swift.
I think this bug was introduced in #69 because NSNumber condition was removed from the first switch statement.
Example:
var dictionary = [ "int": NSNumber(0) ]
AnyEncodable is returning ["int": false]. This problem only happens from version 0.6.5.
The text was updated successfully, but these errors were encountered:
I'm running into the same issue
Sorry, something went wrong.
No branches or pull requests
When dictionary contains an NSNumber as 0 or 1, encodable method is mapping to true or false because 0 or 1 is also a boolean for swift.
I think this bug was introduced in #69 because NSNumber condition was removed from the first switch statement.
Example:
AnyEncodable is returning ["int": false].
This problem only happens from version 0.6.5.
The text was updated successfully, but these errors were encountered: