File tree Expand file tree Collapse file tree
Sources/JSONAPI/Resource/Resource Object
Tests/JSONAPITests/ResourceObject Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,15 +137,15 @@ extension ResourceObjectDecodingError: CustomStringConvertible {
137137 case . keyNotFound where subjectName == ResourceObjectDecodingError . entireObject:
138138 return " \( location) object is required and missing. "
139139 case . keyNotFound where location == . type:
140- return " 'type' (a.k.a. JSON:API type name) is required and missing. "
140+ return " 'type' (a.k.a. the JSON:API type name) is required and missing. "
141141 case . keyNotFound where location == . relationshipType:
142142 return " ' \( subjectName) ' relationship does not have a 'type'. "
143143 case . keyNotFound where location == . relationshipId:
144144 return " ' \( subjectName) ' relationship does not have an 'id'. "
145145 case . keyNotFound:
146146 return " ' \( subjectName) ' \( location. singular) is required and missing. "
147147 case . valueNotFound where location == . type:
148- return " ' \( location. singular) ' (a.k.a. JSON:API type name) is not nullable but null was found. "
148+ return " ' \( location. singular) ' (a.k.a. the JSON:API type name) is not nullable but null was found. "
149149 case . valueNotFound:
150150 return " ' \( subjectName) ' \( location. singular) is not nullable but null was found. "
151151 case . typeMismatch( expectedTypeName: let expected) where location == . type:
Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ extension ResourceObjectDecodingErrorTests {
488488
489489 XCTAssertEqual (
490490 ( error as? ResourceObjectDecodingError ) ? . description,
491- #"'type' (a.k.a. JSON:API type name) is required and missing."#
491+ #"'type' (a.k.a. the JSON:API type name) is required and missing."#
492492 )
493493 }
494494 }
@@ -518,7 +518,7 @@ extension ResourceObjectDecodingErrorTests {
518518
519519 XCTAssertEqual (
520520 specialError? . description,
521- " 'type' (a.k.a. JSON:API type name) is not nullable but null was found. "
521+ " 'type' (a.k.a. the JSON:API type name) is not nullable but null was found. "
522522 )
523523 } else {
524524 XCTAssertEqual (
@@ -533,7 +533,7 @@ extension ResourceObjectDecodingErrorTests {
533533
534534 XCTAssertEqual (
535535 specialError? . description,
536- " 'type' (a.k.a. JSON:API type name) is not a String as expected. "
536+ " 'type' (a.k.a. the JSON:API type name) is not a String as expected. "
537537 )
538538 }
539539 }
You can’t perform that action at this time.
0 commit comments