Build Information
Successful build of AmiiboService, reference v1.1.2 (e9f08c
), with Swift 6.0 for Linux on 3 Nov 2024 10:54:42 UTC.
Swift 6 data race errors: 11
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rock-n-code/amiibo-service.git
Reference: v1.1.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/rock-n-code/amiibo-service
* tag v1.1.2 -> FETCH_HEAD
HEAD is now at e9f08c6 [Improvement] SwiftLibs package update (#22)
Cloned https://github.com/rock-n-code/amiibo-service.git
Revision (git rev-parse @):
e9f08c68da018271ef2b05a1f80b782a376fe71a
SUCCESS checkout https://github.com/rock-n-code/amiibo-service.git at v1.1.2
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/rock-n-code/amiibo-service.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/rock-n-code/swift-libs.git
[1/1637] Fetching swift-libs
[2/3675] Fetching swift-libs, swift-docc-plugin
Fetched https://github.com/rock-n-code/swift-libs.git from cache (0.50s)
[1468/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.64s)
Computing version for https://github.com/rock-n-code/swift-libs.git
Computed https://github.com/rock-n-code/swift-libs.git at 0.2.2 (0.86s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.89s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.50s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.96s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/rock-n-code/swift-libs.git
Working copy of https://github.com/rock-n-code/swift-libs.git resolved at 0.2.2
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/36] Emitting module SwiftLibsDependency
[10/36] Compiling SwiftLibsDependency Dependency.swift
[11/36] Compiling SwiftLibsCoordination PushNavigationRouter.swift
[12/36] Compiling SwiftLibsCoordination WindowRouter.swift
[13/36] Compiling SwiftLibsFoundation Optional+Nil.swift
[14/37] Compiling SwiftLibsDependency DependencyService.swift
[15/37] Compiling SwiftLibsCommunication HTTPRequestMethod.swift
[16/37] Compiling SwiftLibsFoundation Collection+Empty.swift
[17/37] Compiling SwiftLibsCoordination BaseNavigationRouter.swift
[18/37] Compiling SwiftLibsCoordination Router.swift
[19/37] Compiling SwiftLibsCoordination ModalNavigationRouter.swift
[20/37] Compiling SwiftLibsDependency DependencyKey.swift
[21/37] Compiling SwiftLibsCoordination Coordinator.swift
[22/37] Emitting module SwiftLibsCoordination
[25/39] Compiling SwiftLibsFoundation LossyCodableList.swift
[26/39] Emitting module SwiftLibsFoundation
[27/39] Compiling SwiftLibsFoundation Bundle+LocalisationBundle.swift
[28/39] Compiling SwiftLibsFoundation BundleError.swift
[29/39] Compiling SwiftLibsFoundation Bool+Init.swift
[30/39] Compiling SwiftLibsFoundation String+Empty.swift
[31/39] Compiling SwiftLibsFoundation String+Localisation.swift
[32/39] Compiling SwiftLibsFoundation TimeZone+Zone.swift
[33/40] Compiling SwiftLibsCommunication Client.swift
[34/40] Compiling SwiftLibsCommunication Endpoint.swift
[35/40] Compiling SwiftLibsCommunication HTTPResponseCode.swift
[36/40] Compiling SwiftLibsCommunication MakeURLRequestError.swift
[37/40] Compiling SwiftLibsCommunication MakeURLRequestUseCase.swift
[38/40] Emitting module SwiftLibsCommunication
[39/40] Compiling SwiftLibsCommunication MockURLProtocol.swift
[42/64] Compiling AmiiboService String+Path.swift
[43/64] Compiling AmiiboService String+Scheme.swift
[44/64] Compiling AmiiboService AmiiboFilter.swift
[45/67] Compiling AmiiboService AmiiboGame.swift
[46/67] Compiling AmiiboService AmiiboGameUsage.swift
[47/67] Compiling AmiiboService AmiiboRelease.swift
[48/67] Compiling AmiiboService AmiiboClientError.swift
[49/67] Compiling AmiiboService DateFormatter+Formatter.swift
[50/67] Compiling AmiiboService String+Host.swift
[51/67] Compiling AmiiboService GetLastUpdatedEndpoint.swift
[52/67] Compiling AmiiboService GetSeriesEndpoint.swift
[53/67] Compiling AmiiboService GetTypeEndpoint.swift
[54/67] Compiling AmiiboService KeyName.swift
[55/67] Compiling AmiiboService LastUpdated.swift
[56/67] Compiling AmiiboService Result.swift
[57/67] Emitting module AmiiboService
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Models/DTO/Amiibo.swift:18:19: note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
16 |
17 | /// This model struct represents an amiibo that is retrieved from the respective [remote API endpoint](https://www.amiiboapi.com/docs/#amiibo).
18 | public struct Amiibo {
| `- note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Filters/AmiiboFilter.swift:14:15: note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos.
14 | public struct AmiiboFilter {
| `- note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:122:17: warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
120 | /// - Returns: A decoded `DTO.LastUpdated` instance that represents the date in which the remote API was last updated.
121 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
122 | public func lastUpdated() async throws -> DTO.LastUpdated {
| `- warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
/host/spi-builder-workspace/Sources/Models/DTO/LastUpdated.swift:18:12: note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
16 |
17 | /// This model represents the latest date when the remote API has been updated.
18 | struct LastUpdated {
| `- note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
[58/67] Compiling AmiiboService KeyNameFilter.swift
[59/67] Compiling AmiiboService DTO.swift
[60/67] Compiling AmiiboService Amiibo.swift
[61/67] Compiling AmiiboService AmiiboClient.swift
/host/spi-builder-workspace/Sources/Clients/AmiiboClient.swift:74:25: warning: result of call to 'dataTask(with:completionHandler:)' is unused
72 | #if canImport(FoundationNetworking)
73 | try await withCheckedThrowingContinuation { continuation in
74 | session.dataTask(with: urlRequest) { data, response, error in
| `- warning: result of call to 'dataTask(with:completionHandler:)' is unused
75 | if let error {
76 | continuation.resume(with: .failure(error))
[62/67] Compiling AmiiboService GetAmiiboEndpoint.swift
/host/spi-builder-workspace/Sources/Clients/AmiiboClient.swift:74:25: warning: result of call to 'dataTask(with:completionHandler:)' is unused
72 | #if canImport(FoundationNetworking)
73 | try await withCheckedThrowingContinuation { continuation in
74 | session.dataTask(with: urlRequest) { data, response, error in
| `- warning: result of call to 'dataTask(with:completionHandler:)' is unused
75 | if let error {
76 | continuation.resume(with: .failure(error))
[63/67] Compiling AmiiboService GetCharacterEndpoint.swift
/host/spi-builder-workspace/Sources/Clients/AmiiboClient.swift:74:25: warning: result of call to 'dataTask(with:completionHandler:)' is unused
72 | #if canImport(FoundationNetworking)
73 | try await withCheckedThrowingContinuation { continuation in
74 | session.dataTask(with: urlRequest) { data, response, error in
| `- warning: result of call to 'dataTask(with:completionHandler:)' is unused
75 | if let error {
76 | continuation.resume(with: .failure(error))
[64/67] Compiling AmiiboService GetGameSeriesEndpoint.swift
/host/spi-builder-workspace/Sources/Clients/AmiiboClient.swift:74:25: warning: result of call to 'dataTask(with:completionHandler:)' is unused
72 | #if canImport(FoundationNetworking)
73 | try await withCheckedThrowingContinuation { continuation in
74 | session.dataTask(with: urlRequest) { data, response, error in
| `- warning: result of call to 'dataTask(with:completionHandler:)' is unused
75 | if let error {
76 | continuation.resume(with: .failure(error))
[65/67] Compiling AmiiboService Filter.swift
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Models/DTO/Amiibo.swift:18:19: note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
16 |
17 | /// This model struct represents an amiibo that is retrieved from the respective [remote API endpoint](https://www.amiiboapi.com/docs/#amiibo).
18 | public struct Amiibo {
| `- note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Filters/AmiiboFilter.swift:14:15: note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos.
14 | public struct AmiiboFilter {
| `- note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:122:17: warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
120 | /// - Returns: A decoded `DTO.LastUpdated` instance that represents the date in which the remote API was last updated.
121 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
122 | public func lastUpdated() async throws -> DTO.LastUpdated {
| `- warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
/host/spi-builder-workspace/Sources/Models/DTO/LastUpdated.swift:18:12: note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
16 |
17 | /// This model represents the latest date when the remote API has been updated.
18 | struct LastUpdated {
| `- note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:53:33: warning: non-sendable type 'Result<DTO.Amiibo>' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
51 | client.setDateDecodingStrategy(.formatted(.dateOnly))
52 |
53 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.Amiibo>' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
54 | endpoint: GetAmiiboEndpoint(parameters: filter.makeParameters()),
55 | as: Result<DTO.Amiibo>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:68:33: warning: non-sendable type 'Result<DTO.AmiiboSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | client.setDateDecodingStrategy(.deferredToDate)
67 |
68 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.AmiiboSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | endpoint: GetSeriesEndpoint(parameters: filter.makeParameters()),
70 | as: Result<DTO.AmiiboSeries>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:83:33: warning: non-sendable type 'Result<DTO.AmiiboType>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
81 | client.setDateDecodingStrategy(.deferredToDate)
82 |
83 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.AmiiboType>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
84 | endpoint: GetTypeEndpoint(parameters: filter.makeParameters()),
85 | as: Result<DTO.AmiiboType>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:98:33: warning: non-sendable type 'Result<DTO.Character>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | client.setDateDecodingStrategy(.deferredToDate)
97 |
98 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.Character>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | endpoint: GetCharacterEndpoint(parameters: filter.makeParameters()),
100 | as: Result<DTO.Character>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:113:33: warning: non-sendable type 'Result<DTO.GameSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
111 | client.setDateDecodingStrategy(.deferredToDate)
112 |
113 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.GameSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
114 | endpoint: GetGameSeriesEndpoint(parameters: filter.makeParameters()),
115 | as: Result<DTO.GameSeries>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:125:33: warning: non-sendable type 'DTO.LastUpdated' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
125 | return try await client.request(
| `- warning: non-sendable type 'DTO.LastUpdated' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
126 | endpoint: GetLastUpdatedEndpoint(),
127 | as: DTO.LastUpdated.self
/host/spi-builder-workspace/Sources/Models/DTO/LastUpdated.swift:18:12: note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
16 |
17 | /// This model represents the latest date when the remote API has been updated.
18 | struct LastUpdated {
| `- note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:53:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
51 | client.setDateDecodingStrategy(.formatted(.dateOnly))
52 |
53 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | endpoint: GetAmiiboEndpoint(parameters: filter.makeParameters()),
55 | as: Result<DTO.Amiibo>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:68:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
66 | client.setDateDecodingStrategy(.deferredToDate)
67 |
68 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
69 | endpoint: GetSeriesEndpoint(parameters: filter.makeParameters()),
70 | as: Result<DTO.AmiiboSeries>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:83:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
81 | client.setDateDecodingStrategy(.deferredToDate)
82 |
83 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
84 | endpoint: GetTypeEndpoint(parameters: filter.makeParameters()),
85 | as: Result<DTO.AmiiboType>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:98:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
96 | client.setDateDecodingStrategy(.deferredToDate)
97 |
98 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
99 | endpoint: GetCharacterEndpoint(parameters: filter.makeParameters()),
100 | as: Result<DTO.Character>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:113:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
111 | client.setDateDecodingStrategy(.deferredToDate)
112 |
113 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
114 | endpoint: GetGameSeriesEndpoint(parameters: filter.makeParameters()),
115 | as: Result<DTO.GameSeries>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:125:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
125 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
126 | endpoint: GetLastUpdatedEndpoint(),
127 | as: DTO.LastUpdated.self
[66/67] Compiling AmiiboService Service.swift
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Models/DTO/Amiibo.swift:18:19: note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
16 |
17 | /// This model struct represents an amiibo that is retrieved from the respective [remote API endpoint](https://www.amiiboapi.com/docs/#amiibo).
18 | public struct Amiibo {
| `- note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Filters/AmiiboFilter.swift:14:15: note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos.
14 | public struct AmiiboFilter {
| `- note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:122:17: warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
120 | /// - Returns: A decoded `DTO.LastUpdated` instance that represents the date in which the remote API was last updated.
121 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
122 | public func lastUpdated() async throws -> DTO.LastUpdated {
| `- warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
/host/spi-builder-workspace/Sources/Models/DTO/LastUpdated.swift:18:12: note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
16 |
17 | /// This model represents the latest date when the remote API has been updated.
18 | struct LastUpdated {
| `- note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:53:33: warning: non-sendable type 'Result<DTO.Amiibo>' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
51 | client.setDateDecodingStrategy(.formatted(.dateOnly))
52 |
53 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.Amiibo>' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
54 | endpoint: GetAmiiboEndpoint(parameters: filter.makeParameters()),
55 | as: Result<DTO.Amiibo>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:68:33: warning: non-sendable type 'Result<DTO.AmiiboSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | client.setDateDecodingStrategy(.deferredToDate)
67 |
68 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.AmiiboSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | endpoint: GetSeriesEndpoint(parameters: filter.makeParameters()),
70 | as: Result<DTO.AmiiboSeries>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:83:33: warning: non-sendable type 'Result<DTO.AmiiboType>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
81 | client.setDateDecodingStrategy(.deferredToDate)
82 |
83 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.AmiiboType>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
84 | endpoint: GetTypeEndpoint(parameters: filter.makeParameters()),
85 | as: Result<DTO.AmiiboType>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:98:33: warning: non-sendable type 'Result<DTO.Character>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | client.setDateDecodingStrategy(.deferredToDate)
97 |
98 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.Character>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | endpoint: GetCharacterEndpoint(parameters: filter.makeParameters()),
100 | as: Result<DTO.Character>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:113:33: warning: non-sendable type 'Result<DTO.GameSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
111 | client.setDateDecodingStrategy(.deferredToDate)
112 |
113 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.GameSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
114 | endpoint: GetGameSeriesEndpoint(parameters: filter.makeParameters()),
115 | as: Result<DTO.GameSeries>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:125:33: warning: non-sendable type 'DTO.LastUpdated' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
125 | return try await client.request(
| `- warning: non-sendable type 'DTO.LastUpdated' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
126 | endpoint: GetLastUpdatedEndpoint(),
127 | as: DTO.LastUpdated.self
/host/spi-builder-workspace/Sources/Models/DTO/LastUpdated.swift:18:12: note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
16 |
17 | /// This model represents the latest date when the remote API has been updated.
18 | struct LastUpdated {
| `- note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:53:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
51 | client.setDateDecodingStrategy(.formatted(.dateOnly))
52 |
53 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | endpoint: GetAmiiboEndpoint(parameters: filter.makeParameters()),
55 | as: Result<DTO.Amiibo>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:68:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
66 | client.setDateDecodingStrategy(.deferredToDate)
67 |
68 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
69 | endpoint: GetSeriesEndpoint(parameters: filter.makeParameters()),
70 | as: Result<DTO.AmiiboSeries>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:83:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
81 | client.setDateDecodingStrategy(.deferredToDate)
82 |
83 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
84 | endpoint: GetTypeEndpoint(parameters: filter.makeParameters()),
85 | as: Result<DTO.AmiiboType>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:98:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
96 | client.setDateDecodingStrategy(.deferredToDate)
97 |
98 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
99 | endpoint: GetCharacterEndpoint(parameters: filter.makeParameters()),
100 | as: Result<DTO.Character>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:113:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
111 | client.setDateDecodingStrategy(.deferredToDate)
112 |
113 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
114 | endpoint: GetGameSeriesEndpoint(parameters: filter.makeParameters()),
115 | as: Result<DTO.GameSeries>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:125:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
125 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
126 | endpoint: GetLastUpdatedEndpoint(),
127 | as: DTO.LastUpdated.self
[67/67] Compiling AmiiboService AmiiboService.swift
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type '[DTO.Amiibo]' returned by actor-isolated instance method 'amiibos(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Models/DTO/Amiibo.swift:18:19: note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
16 |
17 | /// This model struct represents an amiibo that is retrieved from the respective [remote API endpoint](https://www.amiiboapi.com/docs/#amiibo).
18 | public struct Amiibo {
| `- note: consider making struct 'Amiibo' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:48:17: warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | /// - Returns: A list of decoded ``DTO.Amiibo`` instances that matches the given filter criteria.
47 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
48 | public func amiibos(
| `- warning: non-sendable type 'AmiiboFilter' in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiibos(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
49 | filter: AmiiboFilter = .init()
50 | ) async throws -> [DTO.Amiibo] {
/host/spi-builder-workspace/Sources/Filters/AmiiboFilter.swift:14:15: note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos.
14 | public struct AmiiboFilter {
| `- note: consider making struct 'AmiiboFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type '[DTO.AmiiboSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:63:17: warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
61 | /// - Returns: A list of decoded ``DTO.AmiiboSeries`` instances that matches the given filter criteria.
62 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
63 | public func amiiboSeries(
| `- warning: non-sendable type 'AmiiboSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | filter: AmiiboSeriesFilter = .init()
65 | ) async throws -> [DTO.AmiiboSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type '[DTO.AmiiboType]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'amiiboTypes(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:78:17: warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
76 | /// - Returns: A list of decoded ``DTO.AmiiboType`` instances that matches the given filter criteria.
77 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
78 | public func amiiboTypes(
| `- warning: non-sendable type 'AmiiboTypeFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'amiiboTypes(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
79 | filter: AmiiboTypeFilter = .init()
80 | ) async throws -> [DTO.AmiiboType] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type '[DTO.GameSeries]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'gameSeries(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:108:17: warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
106 | /// - Returns: A list of decoded ``DTO.GameSeries`` instances that matches the given filter criteria.
107 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
108 | public func gameSeries(
| `- warning: non-sendable type 'GameSeriesFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'gameSeries(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
109 | filter: GameSeriesFilter = .init()
110 | ) async throws -> [DTO.GameSeries] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type '[DTO.Character]' (aka 'Array<DTO.KeyName>') returned by actor-isolated instance method 'characters(filter:)' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Models/DTO/KeyName.swift:16:19: note: consider making struct 'KeyName' conform to the 'Sendable' protocol
14 |
15 | /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``.
16 | public struct KeyName {
| `- note: consider making struct 'KeyName' conform to the 'Sendable' protocol
17 |
18 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:93:17: warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
91 | /// - Returns: A list of decoded ``DTO.Character`` instances that matches the given filter criteria.
92 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
93 | public func characters(
| `- warning: non-sendable type 'CharacterFilter' (aka 'KeyNameFilter') in parameter of the protocol requirement satisfied by actor-isolated instance method 'characters(filter:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
94 | filter: CharacterFilter = .init()
95 | ) async throws -> [DTO.Character] {
/host/spi-builder-workspace/Sources/Filters/KeyNameFilter.swift:14:15: note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
12 |
13 | /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``).
14 | public struct KeyNameFilter {
| `- note: consider making struct 'KeyNameFilter' conform to the 'Sendable' protocol
15 |
16 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:122:17: warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
120 | /// - Returns: A decoded `DTO.LastUpdated` instance that represents the date in which the remote API was last updated.
121 | /// - Throws: A ``AmiiboClientError`` is thrown in case a request failed, or a `DecodingError` is thrown in case the decoding of some object failed.
122 | public func lastUpdated() async throws -> DTO.LastUpdated {
| `- warning: non-sendable type 'DTO.LastUpdated' returned by actor-isolated instance method 'lastUpdated()' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
/host/spi-builder-workspace/Sources/Models/DTO/LastUpdated.swift:18:12: note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
16 |
17 | /// This model represents the latest date when the remote API has been updated.
18 | struct LastUpdated {
| `- note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:53:33: warning: non-sendable type 'Result<DTO.Amiibo>' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
51 | client.setDateDecodingStrategy(.formatted(.dateOnly))
52 |
53 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.Amiibo>' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
54 | endpoint: GetAmiiboEndpoint(parameters: filter.makeParameters()),
55 | as: Result<DTO.Amiibo>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:68:33: warning: non-sendable type 'Result<DTO.AmiiboSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | client.setDateDecodingStrategy(.deferredToDate)
67 |
68 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.AmiiboSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | endpoint: GetSeriesEndpoint(parameters: filter.makeParameters()),
70 | as: Result<DTO.AmiiboSeries>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:83:33: warning: non-sendable type 'Result<DTO.AmiiboType>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
81 | client.setDateDecodingStrategy(.deferredToDate)
82 |
83 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.AmiiboType>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
84 | endpoint: GetTypeEndpoint(parameters: filter.makeParameters()),
85 | as: Result<DTO.AmiiboType>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:98:33: warning: non-sendable type 'Result<DTO.Character>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | client.setDateDecodingStrategy(.deferredToDate)
97 |
98 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.Character>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | endpoint: GetCharacterEndpoint(parameters: filter.makeParameters()),
100 | as: Result<DTO.Character>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:113:33: warning: non-sendable type 'Result<DTO.GameSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
111 | client.setDateDecodingStrategy(.deferredToDate)
112 |
113 | return try await client.request(
| `- warning: non-sendable type 'Result<DTO.GameSeries>' (aka 'Result<DTO.KeyName>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
114 | endpoint: GetGameSeriesEndpoint(parameters: filter.makeParameters()),
115 | as: Result<DTO.GameSeries>.self
/host/spi-builder-workspace/Sources/Models/Result.swift:13:8: note: consider making generic struct 'Result' conform to the 'Sendable' protocol
11 | //===----------------------------------------------------------------------===//
12 |
13 | struct Result<Model: Decodable> {
| `- note: consider making generic struct 'Result' conform to the 'Sendable' protocol
14 | let items: [Model]
15 | }
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:125:33: warning: non-sendable type 'DTO.LastUpdated' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
125 | return try await client.request(
| `- warning: non-sendable type 'DTO.LastUpdated' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
126 | endpoint: GetLastUpdatedEndpoint(),
127 | as: DTO.LastUpdated.self
/host/spi-builder-workspace/Sources/Models/DTO/LastUpdated.swift:18:12: note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
16 |
17 | /// This model represents the latest date when the remote API has been updated.
18 | struct LastUpdated {
| `- note: consider making struct 'LastUpdated' conform to the 'Sendable' protocol
19 |
20 | // MARK: Properties
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:53:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
51 | client.setDateDecodingStrategy(.formatted(.dateOnly))
52 |
53 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | endpoint: GetAmiiboEndpoint(parameters: filter.makeParameters()),
55 | as: Result<DTO.Amiibo>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:68:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
66 | client.setDateDecodingStrategy(.deferredToDate)
67 |
68 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
69 | endpoint: GetSeriesEndpoint(parameters: filter.makeParameters()),
70 | as: Result<DTO.AmiiboSeries>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:83:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
81 | client.setDateDecodingStrategy(.deferredToDate)
82 |
83 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
84 | endpoint: GetTypeEndpoint(parameters: filter.makeParameters()),
85 | as: Result<DTO.AmiiboType>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:98:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
96 | client.setDateDecodingStrategy(.deferredToDate)
97 |
98 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
99 | endpoint: GetCharacterEndpoint(parameters: filter.makeParameters()),
100 | as: Result<DTO.Character>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:113:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
111 | client.setDateDecodingStrategy(.deferredToDate)
112 |
113 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
114 | endpoint: GetGameSeriesEndpoint(parameters: filter.makeParameters()),
115 | as: Result<DTO.GameSeries>.self
/host/spi-builder-workspace/Sources/Services/AmiiboService.swift:125:33: warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
123 | client.setDateDecodingStrategy(.formatted(.dateAndTime))
124 |
125 | return try await client.request(
| |- warning: sending 'self.client' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.client' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
126 | endpoint: GetLastUpdatedEndpoint(),
127 | as: DTO.LastUpdated.self
Build complete! (36.88s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-libs",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.7",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/rock-n-code/swift-libs.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "AmiiboService",
"name" : "AmiiboService",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "AmiiboService",
"targets" : [
"AmiiboService"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AmiiboServiceTests",
"module_type" : "SwiftTarget",
"name" : "AmiiboServiceTests",
"path" : "Tests",
"product_dependencies" : [
"SwiftLibs"
],
"sources" : [
"Clients/AmiiboClientTests.swift",
"Helpers/Endpoints/TestEndpoint.swift",
"Helpers/Extensions/Data+Seed.swift",
"Helpers/Extensions/GetAmiiboEndpoint+Init.swift",
"Helpers/Extensions/GetCharacterEndpoint+Init.swift",
"Helpers/Extensions/GetGameSeriesEndpoint+Init.swift",
"Helpers/Extensions/GetSeriesEndpoint+Init.swift",
"Helpers/Extensions/GetTypeEndpoint+Init.swift",
"Helpers/Extensions/MockURLRequest+Init.swift",
"Helpers/Extensions/String+Seed.swift",
"Helpers/Models/TestModel.swift",
"Services/AmiiboServiceTests.swift"
],
"target_dependencies" : [
"AmiiboService"
],
"type" : "test"
},
{
"c99name" : "AmiiboService",
"module_type" : "SwiftTarget",
"name" : "AmiiboService",
"path" : "Sources",
"product_dependencies" : [
"SwiftLibs"
],
"product_memberships" : [
"AmiiboService"
],
"sources" : [
"Clients/AmiiboClient.swift",
"Endpoints/GetAmiiboEndpoint.swift",
"Endpoints/GetCharacterEndpoint.swift",
"Endpoints/GetGameSeriesEndpoint.swift",
"Endpoints/GetLastUpdatedEndpoint.swift",
"Endpoints/GetSeriesEndpoint.swift",
"Endpoints/GetTypeEndpoint.swift",
"Errors/AmiiboClientError.swift",
"Extensions/DateFormatter+Formatter.swift",
"Extensions/String+Host.swift",
"Extensions/String+Path.swift",
"Extensions/String+Scheme.swift",
"Filters/AmiiboFilter.swift",
"Filters/KeyNameFilter.swift",
"Models/DTO.swift",
"Models/DTO/Amiibo.swift",
"Models/DTO/AmiiboGame.swift",
"Models/DTO/AmiiboGameUsage.swift",
"Models/DTO/AmiiboRelease.swift",
"Models/DTO/KeyName.swift",
"Models/DTO/LastUpdated.swift",
"Models/Result.swift",
"Protocols/Filter.swift",
"Protocols/Service.swift",
"Services/AmiiboService.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.