Skip to content

Commit

Permalink
Merge pull request #93 from mattpolzin/swift-5_4
Browse files Browse the repository at this point in the history
Swift 5 4 CI
  • Loading branch information
mattpolzin authored Mar 7, 2021
2 parents 5a80661 + a8c4bf6 commit 717f3d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- swift:5.3-focal
- swift:5.3-centos8
- swift:5.3-amazonlinux2
- swiftlang/swift:nightly-5.4-focal
container: ${{ matrix.image }}
steps:
- name: Checkout code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public struct ResourceObject<Description: JSONAPI.ResourceObjectDescription, Met
/// the entity is being created clientside and the
/// server is being asked to create a unique Id. Otherwise,
/// this should be of a type conforming to `IdType`.
public let id: ResourceObject.Id
public let id: JSONAPI.Id<EntityRawIdType, Self>

/// The JSON API compliant attributes of this `ResourceObject`.
public let attributes: Description.Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public struct ResourceObjectDecodingError: Swift.Error, Equatable {
init?(_ jsonAPIError: JSONAPICodingError, jsonAPIType: String) {
self.resourceObjectJsonAPIType = jsonAPIType
switch jsonAPIError {
case .typeMismatch(expected: let expected, found: let found, path: let path):
case .typeMismatch(expected: _, found: let found, path: let path):
(location, subjectName) = Self.context(path: path)
cause = .jsonTypeMismatch(foundType: found)
case .quantityMismatch(expected: let expected, path: let path):
Expand Down

0 comments on commit 717f3d6

Please sign in to comment.