The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build StripeKit, reference master (44a0e6), with Swift 6.0 for Linux on 31 Oct 2024 03:19:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/kyleishie/stripekit.git
Reference: master
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/kyleishie/stripekit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 44a0e64 Implemented External Accounts Partially Implemented Accounts
Cloned https://github.com/kyleishie/stripekit.git
Revision (git rev-parse @):
44a0e648fadf14ed34a95f7ed8b8490c276cd7cb
SUCCESS checkout https://github.com/kyleishie/stripekit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kyleishie/stripekit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/30] Compiling RESTClient HTTPStatus.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:72:16: warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
70 | extension HTTPStatus {
71 |
72 |     static let acceptableRange = HTTPStatus.ok...HTTPStatus.partialContent
   |                |- warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'acceptableRange' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | }
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:77:10: warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
75 |
76 | public enum HTTPURLResponseError : Error {
77 |     case unacceptableStatus(HTTPStatus)
   |          `- warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
78 | }
79 |
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
81 |
82 |     public var status : HTTPStatus {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+CodableBody.swift:11:11: error: cannot find type 'URLRequest' in scope
 9 | import Foundation
10 |
11 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
12 |
13 |     mutating func setJSONBody<T : Encodable>(_ body: T, with encoder: CodableEncoder = JSONEncoder()) throws {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+Convenience.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     public init(_ baseURL: URL, pathItems: String?..., query: [URLQueryItem]? = nil) {
[6/30] Compiling RESTClient URLRequest+CodableBody.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:72:16: warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
70 | extension HTTPStatus {
71 |
72 |     static let acceptableRange = HTTPStatus.ok...HTTPStatus.partialContent
   |                |- warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'acceptableRange' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | }
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:77:10: warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
75 |
76 | public enum HTTPURLResponseError : Error {
77 |     case unacceptableStatus(HTTPStatus)
   |          `- warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
78 | }
79 |
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
81 |
82 |     public var status : HTTPStatus {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+CodableBody.swift:11:11: error: cannot find type 'URLRequest' in scope
 9 | import Foundation
10 |
11 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
12 |
13 |     mutating func setJSONBody<T : Encodable>(_ body: T, with encoder: CodableEncoder = JSONEncoder()) throws {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+Convenience.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     public init(_ baseURL: URL, pathItems: String?..., query: [URLQueryItem]? = nil) {
[7/30] Compiling RESTClient URLRequest+Convenience.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:72:16: warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
70 | extension HTTPStatus {
71 |
72 |     static let acceptableRange = HTTPStatus.ok...HTTPStatus.partialContent
   |                |- warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'acceptableRange' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | }
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:77:10: warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
75 |
76 | public enum HTTPURLResponseError : Error {
77 |     case unacceptableStatus(HTTPStatus)
   |          `- warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
78 | }
79 |
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
81 |
82 |     public var status : HTTPStatus {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+CodableBody.swift:11:11: error: cannot find type 'URLRequest' in scope
 9 | import Foundation
10 |
11 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
12 |
13 |     mutating func setJSONBody<T : Encodable>(_ body: T, with encoder: CodableEncoder = JSONEncoder()) throws {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+Convenience.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     public init(_ baseURL: URL, pathItems: String?..., query: [URLQueryItem]? = nil) {
[8/32] Compiling RESTClient RESTClient+Sync.swift
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:17:23: error: cannot find 'URLRequest' in scope
 15 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil) throws -> [T]? {
 16 |
 17 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 18 |         return try performSyncDataTask([T].self, with: request)
 19 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:27:23: error: cannot find 'URLRequest' in scope
 25 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil) throws -> T? {
 26 |
 27 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 28 |         return try performSyncDataTask(T.self, with: request)
 29 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:37:23: error: cannot find 'URLRequest' in scope
 35 |     public func create<T : Resource & Creatable & Codable>(_ instance: T) throws -> T? {
 36 |
 37 |         var request = URLRequest(baseURL, pathItems: T.path)
    |                       `- error: cannot find 'URLRequest' in scope
 38 |         request.method = .post
 39 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:38:27: error: cannot infer contextual base in reference to member 'post'
 36 |
 37 |         var request = URLRequest(baseURL, pathItems: T.path)
 38 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 39 |         try setJSONBody(instance, for: &request)
 40 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:46:23: error: cannot find 'URLRequest' in scope
 44 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T) throws -> R? {
 45 |
 46 |         var request = URLRequest(baseURL, pathItems: T.path)
    |                       `- error: cannot find 'URLRequest' in scope
 47 |         request.method = .post
 48 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:47:27: error: cannot infer contextual base in reference to member 'post'
 45 |
 46 |         var request = URLRequest(baseURL, pathItems: T.path)
 47 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 48 |         try setJSONBody(instance, for: &request)
 49 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil) throws -> T? {
 57 |
 58 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.method = .patch
 60 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:59:27: error: cannot infer contextual base in reference to member 'patch'
 57 |
 58 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 59 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 60 |         try setJSONBody(instance, for: &request)
 61 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:67:23: error: cannot find 'URLRequest' in scope
 65 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil) throws -> R? {
 66 |
 67 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 68 |         request.method = .patch
 69 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:68:27: error: cannot infer contextual base in reference to member 'patch'
 66 |
 67 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 68 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 69 |         try setJSONBody(instance, for: &request)
 70 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:79:23: error: cannot find 'URLRequest' in scope
 77 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil) throws -> T? {
 78 |
 79 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 80 |         request.method = .put
 81 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:80:27: error: cannot infer contextual base in reference to member 'put'
 78 |
 79 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 80 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 81 |         try setJSONBody(instance, for: &request)
 82 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:88:23: error: cannot find 'URLRequest' in scope
 86 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil) throws -> R? {
 87 |
 88 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 89 |         request.method = .put
 90 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:89:27: error: cannot infer contextual base in reference to member 'put'
 87 |
 88 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 89 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 90 |         try setJSONBody(instance, for: &request)
 91 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:100:23: error: cannot find 'URLRequest' in scope
 98 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil) throws -> T? {
 99 |
100 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
101 |         request.method = .delete
102 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:101:27: error: cannot infer contextual base in reference to member 'delete'
 99 |
100 |         var request = URLRequest(baseURL, pathItems: T.path, id)
101 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
102 |         return try performSyncDataTask(T.self, with: request)
103 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:110:23: error: cannot find 'URLRequest' in scope
108 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type) throws -> R? {
109 |
110 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
111 |         request.method = .delete
112 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:111:27: error: cannot infer contextual base in reference to member 'delete'
109 |
110 |         var request = URLRequest(baseURL, pathItems: T.path, id)
111 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
112 |         return try performSyncDataTask(R.self, with: request)
113 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:13:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 11 | open class RESTClient<Error> where Error : Swift.Error & Decodable {
 12 |
 13 |     open let baseURL : URL
    |              `- warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 14 |
 15 |     private(set) var session : URLSession
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:15:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     open let baseURL : URL
 14 |
 15 |     private(set) var session : URLSession
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:75: error: 'nil' requires a contextual type
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                                                                           `- error: 'nil' requires a contextual type
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:95: error: 'nil' requires a contextual type
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                                                                                               `- error: 'nil' requires a contextual type
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:48:53: error: type of expression is ambiguous without a type annotation
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
    |                                                     `- error: type of expression is ambiguous without a type annotation
 49 |             fatalError("You need to set Content-Type on the URLSessionConfiguration.")
 50 |         }
[9/32] Compiling RESTClient RESTClient.swift
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:17:23: error: cannot find 'URLRequest' in scope
 15 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil) throws -> [T]? {
 16 |
 17 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 18 |         return try performSyncDataTask([T].self, with: request)
 19 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:27:23: error: cannot find 'URLRequest' in scope
 25 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil) throws -> T? {
 26 |
 27 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 28 |         return try performSyncDataTask(T.self, with: request)
 29 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:37:23: error: cannot find 'URLRequest' in scope
 35 |     public func create<T : Resource & Creatable & Codable>(_ instance: T) throws -> T? {
 36 |
 37 |         var request = URLRequest(baseURL, pathItems: T.path)
    |                       `- error: cannot find 'URLRequest' in scope
 38 |         request.method = .post
 39 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:38:27: error: cannot infer contextual base in reference to member 'post'
 36 |
 37 |         var request = URLRequest(baseURL, pathItems: T.path)
 38 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 39 |         try setJSONBody(instance, for: &request)
 40 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:46:23: error: cannot find 'URLRequest' in scope
 44 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T) throws -> R? {
 45 |
 46 |         var request = URLRequest(baseURL, pathItems: T.path)
    |                       `- error: cannot find 'URLRequest' in scope
 47 |         request.method = .post
 48 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:47:27: error: cannot infer contextual base in reference to member 'post'
 45 |
 46 |         var request = URLRequest(baseURL, pathItems: T.path)
 47 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 48 |         try setJSONBody(instance, for: &request)
 49 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil) throws -> T? {
 57 |
 58 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.method = .patch
 60 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:59:27: error: cannot infer contextual base in reference to member 'patch'
 57 |
 58 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 59 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 60 |         try setJSONBody(instance, for: &request)
 61 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:67:23: error: cannot find 'URLRequest' in scope
 65 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil) throws -> R? {
 66 |
 67 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 68 |         request.method = .patch
 69 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:68:27: error: cannot infer contextual base in reference to member 'patch'
 66 |
 67 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 68 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 69 |         try setJSONBody(instance, for: &request)
 70 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:79:23: error: cannot find 'URLRequest' in scope
 77 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil) throws -> T? {
 78 |
 79 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 80 |         request.method = .put
 81 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:80:27: error: cannot infer contextual base in reference to member 'put'
 78 |
 79 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 80 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 81 |         try setJSONBody(instance, for: &request)
 82 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:88:23: error: cannot find 'URLRequest' in scope
 86 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil) throws -> R? {
 87 |
 88 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 89 |         request.method = .put
 90 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:89:27: error: cannot infer contextual base in reference to member 'put'
 87 |
 88 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 89 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 90 |         try setJSONBody(instance, for: &request)
 91 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:100:23: error: cannot find 'URLRequest' in scope
 98 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil) throws -> T? {
 99 |
100 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
101 |         request.method = .delete
102 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:101:27: error: cannot infer contextual base in reference to member 'delete'
 99 |
100 |         var request = URLRequest(baseURL, pathItems: T.path, id)
101 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
102 |         return try performSyncDataTask(T.self, with: request)
103 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:110:23: error: cannot find 'URLRequest' in scope
108 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type) throws -> R? {
109 |
110 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
111 |         request.method = .delete
112 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:111:27: error: cannot infer contextual base in reference to member 'delete'
109 |
110 |         var request = URLRequest(baseURL, pathItems: T.path, id)
111 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
112 |         return try performSyncDataTask(R.self, with: request)
113 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:13:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 11 | open class RESTClient<Error> where Error : Swift.Error & Decodable {
 12 |
 13 |     open let baseURL : URL
    |              `- warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 14 |
 15 |     private(set) var session : URLSession
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:15:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     open let baseURL : URL
 14 |
 15 |     private(set) var session : URLSession
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:75: error: 'nil' requires a contextual type
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                                                                           `- error: 'nil' requires a contextual type
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:95: error: 'nil' requires a contextual type
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                                                                                               `- error: 'nil' requires a contextual type
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:48:53: error: type of expression is ambiguous without a type annotation
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
    |                                                     `- error: type of expression is ambiguous without a type annotation
 49 |             fatalError("You need to set Content-Type on the URLSessionConfiguration.")
 50 |         }
[10/32] Compiling RESTClient Resource.swift
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:17:23: error: cannot find 'URLRequest' in scope
 15 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil) throws -> [T]? {
 16 |
 17 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 18 |         return try performSyncDataTask([T].self, with: request)
 19 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:27:23: error: cannot find 'URLRequest' in scope
 25 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil) throws -> T? {
 26 |
 27 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 28 |         return try performSyncDataTask(T.self, with: request)
 29 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:37:23: error: cannot find 'URLRequest' in scope
 35 |     public func create<T : Resource & Creatable & Codable>(_ instance: T) throws -> T? {
 36 |
 37 |         var request = URLRequest(baseURL, pathItems: T.path)
    |                       `- error: cannot find 'URLRequest' in scope
 38 |         request.method = .post
 39 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:38:27: error: cannot infer contextual base in reference to member 'post'
 36 |
 37 |         var request = URLRequest(baseURL, pathItems: T.path)
 38 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 39 |         try setJSONBody(instance, for: &request)
 40 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:46:23: error: cannot find 'URLRequest' in scope
 44 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T) throws -> R? {
 45 |
 46 |         var request = URLRequest(baseURL, pathItems: T.path)
    |                       `- error: cannot find 'URLRequest' in scope
 47 |         request.method = .post
 48 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:47:27: error: cannot infer contextual base in reference to member 'post'
 45 |
 46 |         var request = URLRequest(baseURL, pathItems: T.path)
 47 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 48 |         try setJSONBody(instance, for: &request)
 49 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil) throws -> T? {
 57 |
 58 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.method = .patch
 60 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:59:27: error: cannot infer contextual base in reference to member 'patch'
 57 |
 58 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 59 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 60 |         try setJSONBody(instance, for: &request)
 61 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:67:23: error: cannot find 'URLRequest' in scope
 65 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil) throws -> R? {
 66 |
 67 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 68 |         request.method = .patch
 69 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:68:27: error: cannot infer contextual base in reference to member 'patch'
 66 |
 67 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 68 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 69 |         try setJSONBody(instance, for: &request)
 70 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:79:23: error: cannot find 'URLRequest' in scope
 77 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil) throws -> T? {
 78 |
 79 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 80 |         request.method = .put
 81 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:80:27: error: cannot infer contextual base in reference to member 'put'
 78 |
 79 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 80 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 81 |         try setJSONBody(instance, for: &request)
 82 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:88:23: error: cannot find 'URLRequest' in scope
 86 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil) throws -> R? {
 87 |
 88 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 89 |         request.method = .put
 90 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:89:27: error: cannot infer contextual base in reference to member 'put'
 87 |
 88 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 89 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 90 |         try setJSONBody(instance, for: &request)
 91 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:100:23: error: cannot find 'URLRequest' in scope
 98 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil) throws -> T? {
 99 |
100 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
101 |         request.method = .delete
102 |         return try performSyncDataTask(T.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:101:27: error: cannot infer contextual base in reference to member 'delete'
 99 |
100 |         var request = URLRequest(baseURL, pathItems: T.path, id)
101 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
102 |         return try performSyncDataTask(T.self, with: request)
103 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:110:23: error: cannot find 'URLRequest' in scope
108 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type) throws -> R? {
109 |
110 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
111 |         request.method = .delete
112 |         return try performSyncDataTask(R.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift:111:27: error: cannot infer contextual base in reference to member 'delete'
109 |
110 |         var request = URLRequest(baseURL, pathItems: T.path, id)
111 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
112 |         return try performSyncDataTask(R.self, with: request)
113 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:13:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 11 | open class RESTClient<Error> where Error : Swift.Error & Decodable {
 12 |
 13 |     open let baseURL : URL
    |              `- warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 14 |
 15 |     private(set) var session : URLSession
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:15:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     open let baseURL : URL
 14 |
 15 |     private(set) var session : URLSession
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:75: error: 'nil' requires a contextual type
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                                                                           `- error: 'nil' requires a contextual type
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:19:95: error: 'nil' requires a contextual type
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
    |                                                                                               `- error: 'nil' requires a contextual type
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:48:53: error: type of expression is ambiguous without a type annotation
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
    |                                                     `- error: type of expression is ambiguous without a type annotation
 49 |             fatalError("You need to set Content-Type on the URLSessionConfiguration.")
 50 |         }
[11/32] Compiling RESTClient AuthorizationHeader.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey: String = "Authorization"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey = "Content-Type"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var contentType: ContentType? {
[12/32] Compiling RESTClient Codable+DynamicCoder.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey: String = "Authorization"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey = "Content-Type"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var contentType: ContentType? {
[13/32] Compiling RESTClient ContentType.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey: String = "Authorization"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey = "Content-Type"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var contentType: ContentType? {
[14/32] Compiling RESTClient Dictionary+URLQueryItem.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPMethod.swift:20:11: error: cannot find type 'URLRequest' in scope
18 |
19 |
20 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
21 |
22 |     public var method : HTTPMethod? {
[15/32] Compiling RESTClient EnumCollection.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPMethod.swift:20:11: error: cannot find type 'URLRequest' in scope
18 |
19 |
20 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
21 |
22 |     public var method : HTTPMethod? {
[16/32] Compiling RESTClient HTTPMethod.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPMethod.swift:20:11: error: cannot find type 'URLRequest' in scope
18 |
19 |
20 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
21 |
22 |     public var method : HTTPMethod? {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/32] Emitting module RESTClient
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:13:11: error: cannot find type 'URLRequest' in scope
11 | private let headerKey = "Accept"
12 |
13 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
14 |
15 |     var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:26:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |
28 |     var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey: String = "Authorization"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey = "Content-Type"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
28 |
29 |     var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPMethod.swift:20:11: error: cannot find type 'URLRequest' in scope
18 |
19 |
20 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
21 |
22 |     public var method : HTTPMethod? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:72:16: warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
70 | extension HTTPStatus {
71 |
72 |     static let acceptableRange = HTTPStatus.ok...HTTPStatus.partialContent
   |                |- warning: static property 'acceptableRange' is not concurrency-safe because non-'Sendable' type 'ClosedRange<HTTPStatus>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'acceptableRange' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | }
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:77:10: warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
 9 |
10 | //MARK: Status Code Definitions
11 | public enum HTTPStatus : Int {
   |             `- note: consider making enum 'HTTPStatus' conform to the 'Sendable' protocol
12 |
13 |     case unknown = -1
   :
75 |
76 | public enum HTTPURLResponseError : Error {
77 |     case unacceptableStatus(HTTPStatus)
   |          `- warning: associated value 'unacceptableStatus' of 'Sendable'-conforming enum 'HTTPURLResponseError' has non-sendable type 'HTTPStatus'; this is an error in the Swift 6 language mode
78 | }
79 |
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
81 |
82 |     public var status : HTTPStatus {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+CodableBody.swift:11:11: error: cannot find type 'URLRequest' in scope
 9 | import Foundation
10 |
11 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
12 |
13 |     mutating func setJSONBody<T : Encodable>(_ body: T, with encoder: CodableEncoder = JSONEncoder()) throws {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+Convenience.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     public init(_ baseURL: URL, pathItems: String?..., query: [URLQueryItem]? = nil) {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLSessionConfiguration.swift:11:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
12 |
13 |     public static var restJSONAPI : URLSessionConfiguration {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:13:172: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     //MARK: List --- GET
 12 |
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:23:196: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     //MARK: Retrieve --- GET
 22 |
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:33:144: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     //MARK: Create --- POST
 32 |
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:42:194: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     }
 41 |
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                  `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:54:163: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     //MARK: Update --- PATCH
 53 |
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:63:213: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:75:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     //MARK: Replace --- PUT
 74 |
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:84:216: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     }
 83 |
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:96:150: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     //MARK: Delete --- DELETE
 95 |
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:112:185: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     /// Use this method in cases where to response is not the same as the request.
111 |     /// For example some APIs return just the id of the deleted resource.
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:69: error: cannot find type 'URLRequest' in scope
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:140: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:95: error: cannot find type 'URLRequest' in scope
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         var request = request
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:13:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 11 | open class RESTClient<Error> where Error : Swift.Error & Decodable {
 12 |
 13 |     open let baseURL : URL
    |              `- warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 14 |
 15 |     private(set) var session : URLSession
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:15:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     open let baseURL : URL
 14 |
 15 |     private(set) var session : URLSession
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
[18/32] Compiling RESTClient FormURLEncoder.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:13:11: error: cannot find type 'URLRequest' in scope
11 | private let headerKey = "Accept"
12 |
13 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
14 |
15 |     var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:26:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |
28 |     var accept: Accept? {
[19/32] Compiling RESTClient JSONEncoder.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:13:11: error: cannot find type 'URLRequest' in scope
11 | private let headerKey = "Accept"
12 |
13 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
14 |
15 |     var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:26:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |
28 |     var accept: Accept? {
[20/32] Compiling RESTClient Accept.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:13:11: error: cannot find type 'URLRequest' in scope
11 | private let headerKey = "Accept"
12 |
13 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
14 |
15 |     var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:26:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |
28 |     var accept: Accept? {
[21/32] Compiling RESTClient _CreationContext.swift
/host/spi-builder-workspace/Sources/RESTClient/_EditingContext.swift:16:23: error: cannot find 'URLRequest' in scope
14 |     public func update<T : Resource & _EditingContext & Encodable>(_ instance: T, id: String? = nil) throws -> T.Root? where T.Root : Resource & Decodable {
15 |
16 |         var request = URLRequest(baseURL, pathItems: T.path, id)
   |                       `- error: cannot find 'URLRequest' in scope
17 |         request.method = .patch
18 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/_EditingContext.swift:17:27: error: cannot infer contextual base in reference to member 'patch'
15 |
16 |         var request = URLRequest(baseURL, pathItems: T.path, id)
17 |         request.method = .patch
   |                           `- error: cannot infer contextual base in reference to member 'patch'
18 |         try setJSONBody(instance, for: &request)
19 |         return try performSyncDataTask(T.Root.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
[22/32] Compiling RESTClient _EditingContext.swift
/host/spi-builder-workspace/Sources/RESTClient/_EditingContext.swift:16:23: error: cannot find 'URLRequest' in scope
14 |     public func update<T : Resource & _EditingContext & Encodable>(_ instance: T, id: String? = nil) throws -> T.Root? where T.Root : Resource & Decodable {
15 |
16 |         var request = URLRequest(baseURL, pathItems: T.path, id)
   |                       `- error: cannot find 'URLRequest' in scope
17 |         request.method = .patch
18 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/_EditingContext.swift:17:27: error: cannot infer contextual base in reference to member 'patch'
15 |
16 |         var request = URLRequest(baseURL, pathItems: T.path, id)
17 |         request.method = .patch
   |                           `- error: cannot infer contextual base in reference to member 'patch'
18 |         try setJSONBody(instance, for: &request)
19 |         return try performSyncDataTask(T.Root.self, with: request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
[23/32] Compiling RESTClient Result.swift
[24/32] Compiling RESTClient _Context.swift
[25/32] Compiling RESTClient URLSessionConfiguration.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLSessionConfiguration.swift:11:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
12 |
13 |     public static var restJSONAPI : URLSessionConfiguration {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:13:172: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     //MARK: List --- GET
 12 |
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:23:196: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     //MARK: Retrieve --- GET
 22 |
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:33:144: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     //MARK: Create --- POST
 32 |
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:42:194: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     }
 41 |
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                  `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:54:163: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     //MARK: Update --- PATCH
 53 |
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:63:213: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:75:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     //MARK: Replace --- PUT
 74 |
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:84:216: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     }
 83 |
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:96:150: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     //MARK: Delete --- DELETE
 95 |
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:112:185: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     /// Use this method in cases where to response is not the same as the request.
111 |     /// For example some APIs return just the id of the deleted resource.
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:15:23: error: cannot find 'URLRequest' in scope
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 16 |         return dataTask([T].self, with: request, completionHandler: completionHandler)
 17 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:69: error: cannot find type 'URLRequest' in scope
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:95: error: cannot find type 'URLRequest' in scope
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:25:23: error: cannot find 'URLRequest' in scope
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 26 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
 27 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:35:23: error: cannot find 'URLRequest' in scope
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
    |                       `- error: cannot find 'URLRequest' in scope
 36 |         request.method = .post
 37 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:36:27: error: cannot infer contextual base in reference to member 'post'
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
 36 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 37 |         try setJSONBody(instance, for: &request)
 38 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:44:23: error: cannot find 'URLRequest' in scope
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
    |                       `- error: cannot find 'URLRequest' in scope
 45 |         request.method = .post
 46 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:45:27: error: cannot infer contextual base in reference to member 'post'
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
 45 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 46 |         try setJSONBody(instance, for: &request)
 47 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:56:23: error: cannot find 'URLRequest' in scope
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 57 |         request.method = .patch
 58 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:57:27: error: cannot infer contextual base in reference to member 'patch'
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 57 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 58 |         try setJSONBody(instance, for: &request)
 59 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:65:23: error: cannot find 'URLRequest' in scope
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 66 |         request.method = .patch
 67 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:66:27: error: cannot infer contextual base in reference to member 'patch'
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 66 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 67 |         try setJSONBody(instance, for: &request)
 68 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:77:23: error: cannot find 'URLRequest' in scope
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 78 |         request.method = .put
 79 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:78:27: error: cannot infer contextual base in reference to member 'put'
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 78 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 79 |         try setJSONBody(instance, for: &request)
 80 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:86:23: error: cannot find 'URLRequest' in scope
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 87 |         request.method = .put
 88 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:87:27: error: cannot infer contextual base in reference to member 'put'
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 87 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 88 |         try setJSONBody(instance, for: &request)
 89 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:98:23: error: cannot find 'URLRequest' in scope
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 99 |         request.method = .delete
100 |         let task = dataTask(T?.self, with: request) { result in
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:99:27: error: cannot infer contextual base in reference to member 'delete'
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 99 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
100 |         let task = dataTask(T?.self, with: request) { result in
101 |             if case let .failure(_, error) = result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:114:23: error: cannot find 'URLRequest' in scope
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
115 |         request.method = .delete
116 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:115:27: error: cannot infer contextual base in reference to member 'delete'
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
115 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
116 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
117 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:140: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         var request = request
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:62: error: cannot infer type of closure parameter 'data' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                              `- error: cannot infer type of closure parameter 'data' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:68: error: cannot infer type of closure parameter 'response' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                                    `- error: cannot infer type of closure parameter 'response' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:78: error: cannot infer type of closure parameter 'error' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                                              `- error: cannot infer type of closure parameter 'error' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
[26/32] Compiling RESTClient RESTClient+Async.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLSessionConfiguration.swift:11:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
12 |
13 |     public static var restJSONAPI : URLSessionConfiguration {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:13:172: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     //MARK: List --- GET
 12 |
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:23:196: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     //MARK: Retrieve --- GET
 22 |
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:33:144: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     //MARK: Create --- POST
 32 |
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:42:194: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     }
 41 |
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                  `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:54:163: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     //MARK: Update --- PATCH
 53 |
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:63:213: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:75:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     //MARK: Replace --- PUT
 74 |
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:84:216: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     }
 83 |
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:96:150: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     //MARK: Delete --- DELETE
 95 |
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:112:185: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     /// Use this method in cases where to response is not the same as the request.
111 |     /// For example some APIs return just the id of the deleted resource.
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:15:23: error: cannot find 'URLRequest' in scope
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 16 |         return dataTask([T].self, with: request, completionHandler: completionHandler)
 17 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:69: error: cannot find type 'URLRequest' in scope
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:95: error: cannot find type 'URLRequest' in scope
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:25:23: error: cannot find 'URLRequest' in scope
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 26 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
 27 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:35:23: error: cannot find 'URLRequest' in scope
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
    |                       `- error: cannot find 'URLRequest' in scope
 36 |         request.method = .post
 37 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:36:27: error: cannot infer contextual base in reference to member 'post'
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
 36 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 37 |         try setJSONBody(instance, for: &request)
 38 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:44:23: error: cannot find 'URLRequest' in scope
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
    |                       `- error: cannot find 'URLRequest' in scope
 45 |         request.method = .post
 46 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:45:27: error: cannot infer contextual base in reference to member 'post'
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
 45 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 46 |         try setJSONBody(instance, for: &request)
 47 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:56:23: error: cannot find 'URLRequest' in scope
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 57 |         request.method = .patch
 58 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:57:27: error: cannot infer contextual base in reference to member 'patch'
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 57 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 58 |         try setJSONBody(instance, for: &request)
 59 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:65:23: error: cannot find 'URLRequest' in scope
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 66 |         request.method = .patch
 67 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:66:27: error: cannot infer contextual base in reference to member 'patch'
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 66 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 67 |         try setJSONBody(instance, for: &request)
 68 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:77:23: error: cannot find 'URLRequest' in scope
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 78 |         request.method = .put
 79 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:78:27: error: cannot infer contextual base in reference to member 'put'
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 78 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 79 |         try setJSONBody(instance, for: &request)
 80 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:86:23: error: cannot find 'URLRequest' in scope
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 87 |         request.method = .put
 88 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:87:27: error: cannot infer contextual base in reference to member 'put'
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 87 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 88 |         try setJSONBody(instance, for: &request)
 89 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:98:23: error: cannot find 'URLRequest' in scope
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 99 |         request.method = .delete
100 |         let task = dataTask(T?.self, with: request) { result in
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:99:27: error: cannot infer contextual base in reference to member 'delete'
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 99 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
100 |         let task = dataTask(T?.self, with: request) { result in
101 |             if case let .failure(_, error) = result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:114:23: error: cannot find 'URLRequest' in scope
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
115 |         request.method = .delete
116 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:115:27: error: cannot infer contextual base in reference to member 'delete'
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
115 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
116 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
117 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:140: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         var request = request
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:62: error: cannot infer type of closure parameter 'data' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                              `- error: cannot infer type of closure parameter 'data' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:68: error: cannot infer type of closure parameter 'response' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                                    `- error: cannot infer type of closure parameter 'response' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:78: error: cannot infer type of closure parameter 'error' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                                              `- error: cannot infer type of closure parameter 'error' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
[27/32] Compiling RESTClient RESTClient+DataTask.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLSessionConfiguration.swift:11:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
12 |
13 |     public static var restJSONAPI : URLSessionConfiguration {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:13:172: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     //MARK: List --- GET
 12 |
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:23:196: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     //MARK: Retrieve --- GET
 22 |
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:33:144: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     //MARK: Create --- POST
 32 |
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:42:194: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     }
 41 |
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                  `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:54:163: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     //MARK: Update --- PATCH
 53 |
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:63:213: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:75:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     //MARK: Replace --- PUT
 74 |
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:84:216: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     }
 83 |
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:96:150: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     //MARK: Delete --- DELETE
 95 |
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:112:185: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     /// Use this method in cases where to response is not the same as the request.
111 |     /// For example some APIs return just the id of the deleted resource.
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:15:23: error: cannot find 'URLRequest' in scope
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 16 |         return dataTask([T].self, with: request, completionHandler: completionHandler)
 17 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:69: error: cannot find type 'URLRequest' in scope
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:95: error: cannot find type 'URLRequest' in scope
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:25:23: error: cannot find 'URLRequest' in scope
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
    |                       `- error: cannot find 'URLRequest' in scope
 26 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
 27 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:35:23: error: cannot find 'URLRequest' in scope
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
    |                       `- error: cannot find 'URLRequest' in scope
 36 |         request.method = .post
 37 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:36:27: error: cannot infer contextual base in reference to member 'post'
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
 36 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 37 |         try setJSONBody(instance, for: &request)
 38 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:44:23: error: cannot find 'URLRequest' in scope
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
    |                       `- error: cannot find 'URLRequest' in scope
 45 |         request.method = .post
 46 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:45:27: error: cannot infer contextual base in reference to member 'post'
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
 45 |         request.method = .post
    |                           `- error: cannot infer contextual base in reference to member 'post'
 46 |         try setJSONBody(instance, for: &request)
 47 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:56:23: error: cannot find 'URLRequest' in scope
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 57 |         request.method = .patch
 58 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:57:27: error: cannot infer contextual base in reference to member 'patch'
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 57 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 58 |         try setJSONBody(instance, for: &request)
 59 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:65:23: error: cannot find 'URLRequest' in scope
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 66 |         request.method = .patch
 67 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:66:27: error: cannot infer contextual base in reference to member 'patch'
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 66 |         request.method = .patch
    |                           `- error: cannot infer contextual base in reference to member 'patch'
 67 |         try setJSONBody(instance, for: &request)
 68 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:77:23: error: cannot find 'URLRequest' in scope
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 78 |         request.method = .put
 79 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:78:27: error: cannot infer contextual base in reference to member 'put'
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 78 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 79 |         try setJSONBody(instance, for: &request)
 80 |         return dataTask(T.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:86:23: error: cannot find 'URLRequest' in scope
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 87 |         request.method = .put
 88 |         try setJSONBody(instance, for: &request)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:87:27: error: cannot infer contextual base in reference to member 'put'
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 87 |         request.method = .put
    |                           `- error: cannot infer contextual base in reference to member 'put'
 88 |         try setJSONBody(instance, for: &request)
 89 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:98:23: error: cannot find 'URLRequest' in scope
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
 99 |         request.method = .delete
100 |         let task = dataTask(T?.self, with: request) { result in
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:99:27: error: cannot infer contextual base in reference to member 'delete'
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
 99 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
100 |         let task = dataTask(T?.self, with: request) { result in
101 |             if case let .failure(_, error) = result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:114:23: error: cannot find 'URLRequest' in scope
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
    |                       `- error: cannot find 'URLRequest' in scope
115 |         request.method = .delete
116 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:115:27: error: cannot infer contextual base in reference to member 'delete'
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
115 |         request.method = .delete
    |                           `- error: cannot infer contextual base in reference to member 'delete'
116 |         return dataTask(R.self, with: request, completionHandler: completionHandler)
117 |
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:140: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         var request = request
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:62: error: cannot infer type of closure parameter 'data' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                              `- error: cannot infer type of closure parameter 'data' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:68: error: cannot infer type of closure parameter 'response' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                                    `- error: cannot infer type of closure parameter 'response' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:45:78: error: cannot infer type of closure parameter 'error' without a type annotation
 43 |         transformers.forEach({ $0.tranform(&request) })
 44 |
 45 |         return session.dataTask(with: request) { [decoders] (data, response, error) in
    |                                                                              `- error: cannot infer type of closure parameter 'error' without a type annotation
 46 |
 47 |             guard let response = response as? HTTPURLResponse else {
BUILD FAILURE 6.0 linux