A Swift library for working with JSON:API APIs. It supports mapping to custom model classes, fetching, advanced querying, linking and persisting.
266
stars
109
forks
source link
Empty data is deserialized as nil. #100
Closed
rlwimi closed 7 years ago
I'd expect a
JSONAPIDocument
to follow the spec that at least one ofdata
,errors
, ormeta
is notnil
.But
{"data":[]}
is deserialized asnil
. I would expect it to deserialize as[]
.Current behavior:
Expected behavior: