-
Notifications
You must be signed in to change notification settings - Fork 73
0.5.0 Migration guide
Johannes Lund edited this page Jul 25, 2016
·
6 revisions
Note: 0.5 is still in progress, as is this page.
Still ok:
let value = json => "a" => "b" => "c" // still ok
let value = json =>? "a" => "b" => "c" // still ok
Does not longer work:
let key = "a"
let value = json => a
Please use:
let key = "a"
let value = json => KeyPath(a)
-MissingKeyError
+DecodingError.missingKey(key)
-TypeMismatchError
+DecodingError.typeMismatch(expected, actual, metadata)
-RawRepresentableInitializationError
+DecodingError.rawRepresentableInitializationError(rawValue, metadata)