You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/JSONAPI/Document/DocumentDecodingError.swift
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,10 @@ public enum DocumentDecodingError: Swift.Error, Equatable {
33
33
self=.primaryResourceMissing
34
34
case.valueNotFound(let type,let context)whereLocation(context)==.data && type ==UnkeyedDecodingContainer.self:
35
35
self=.primaryResourcesMissing
36
+
case.valueNotFound(let type,let context)whereLocation(context)==.data && type is _ArrayType.Type && context.debugDescription.hasSuffix("found null value instead"):
37
+
self=.primaryResourcesMissing
38
+
case.valueNotFound(_,let context)whereLocation(context)==.data && context.debugDescription.hasSuffix("found null value instead"):
39
+
self=.primaryResourceMissing
36
40
case.typeMismatch(let type,let context)whereLocation(context)==.data && type is _ArrayType.Type && context.debugDescription.hasSuffix("but found null instead."):
37
41
self=.primaryResourcesMissing
38
42
case.typeMismatch(_,let context)whereLocation(context)==.data && context.debugDescription.hasSuffix("but found null instead."):
0 commit comments