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
+7Lines changed: 7 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.typeMismatch(let type,let context)whereLocation(context)==.data && type is _ArrayType.Type && context.debugDescription.hasSuffix("but found null instead."):
37
+
self=.primaryResourcesMissing
38
+
case.typeMismatch(_,let context)whereLocation(context)==.data && context.debugDescription.hasSuffix("but found null instead."):
0 commit comments