Skip to content

Commit 717f3d6

Browse files
authored
Merge pull request #93 from mattpolzin/swift-5_4
Swift 5 4 CI
2 parents 5a80661 + a8c4bf6 commit 717f3d6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- swift:5.3-focal
2424
- swift:5.3-centos8
2525
- swift:5.3-amazonlinux2
26+
- swiftlang/swift:nightly-5.4-focal
2627
container: ${{ matrix.image }}
2728
steps:
2829
- name: Checkout code

Sources/JSONAPI/Resource/Resource Object/ResourceObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public struct ResourceObject<Description: JSONAPI.ResourceObjectDescription, Met
128128
/// the entity is being created clientside and the
129129
/// server is being asked to create a unique Id. Otherwise,
130130
/// this should be of a type conforming to `IdType`.
131-
public let id: ResourceObject.Id
131+
public let id: JSONAPI.Id<EntityRawIdType, Self>
132132

133133
/// The JSON API compliant attributes of this `ResourceObject`.
134134
public let attributes: Description.Attributes

Sources/JSONAPI/Resource/Resource Object/ResourceObjectDecodingError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public struct ResourceObjectDecodingError: Swift.Error, Equatable {
7777
init?(_ jsonAPIError: JSONAPICodingError, jsonAPIType: String) {
7878
self.resourceObjectJsonAPIType = jsonAPIType
7979
switch jsonAPIError {
80-
case .typeMismatch(expected: let expected, found: let found, path: let path):
80+
case .typeMismatch(expected: _, found: let found, path: let path):
8181
(location, subjectName) = Self.context(path: path)
8282
cause = .jsonTypeMismatch(foundType: found)
8383
case .quantityMismatch(expected: let expected, path: let path):

0 commit comments

Comments
 (0)