wvteijlingen / Spine

A Swift library for working with JSON:API APIs. It supports mapping to custom model classes, fetching, advanced querying, linking and persisting.
MIT License
266 stars 109 forks source link

[Deserializer] Error will not be thrown if top level "data" attribute is present but null. #78

Closed richardmcclellan closed 8 years ago

richardmcclellan commented 8 years ago

Fix for issue: https://github.com/wvteijlingen/Spine/issues/77

Per JSONAPI specifications, one of data, errors, or meta MUST be present, but they can be null. This change prevents an error from being returned if the value is present but null.

wvteijlingen commented 8 years ago

Looks good to me, thanks a lot!