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
=>?
I can’t figure out for the life of me why the following does not work:
struct Foo: Decodable { let bar: String? static func decode(object: AnyObject) throws -> Foo { return try Foo(bar: object =>? "bar") } }
When parsing the following JSON:
{ "bar": null }
I would expect decode to not throw, and instead return Foo(bar: nil). What happens instead, is MissingKeyError(key: "bar").
decode
Foo(bar: nil)
MissingKeyError(key: "bar")
The text was updated successfully, but these errors were encountered:
=>? should accept NSNull #70
8e3fea1
Oops, definitely not intended. Should work now though, will bump the version after a double checking a few things.
Sorry, something went wrong.
Thanks!
Thanks for reporting! On cocoa pods now.
Thank you!
No branches or pull requests
I can’t figure out for the life of me why the following does not work:
When parsing the following JSON:
I would expect
decode
to not throw, and instead returnFoo(bar: nil)
. What happens instead, isMissingKeyError(key: "bar")
.The text was updated successfully, but these errors were encountered: