The iOS SDK expects the server to send valid response. In case the server sends a response that the iOS SDK does not expect, SKYDataSerialization returns nil (which IMHO is the expected behavior). This caused nil being added to NSDictionary, which is illegal.
The SKYRecordDeserializer should, on encountering a nil value, do one of the following (your pick):
set [NSNull null]
not set the key
~set SKYUnknownValue~ maybe not this one
and also emits a log stating that the value of the key failed to deserialize.
follows #64
The iOS SDK expects the server to send valid response. In case the server sends a response that the iOS SDK does not expect,
SKYDataSerialization
returnsnil
(which IMHO is the expected behavior). This causednil
being added toNSDictionary
, which is illegal.The
SKYRecordDeserializer
should, on encountering anil
value, do one of the following (your pick):[NSNull null]
SKYUnknownValue
~ maybe not this oneand also emits a log stating that the value of the key failed to deserialize.