The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StripeKit, reference master (44a0e6), with Swift 6.3 for Linux on 10 Apr 2026 14:10:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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.3
Building package at path:  $PWD
https://github.com/kyleishie/stripekit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/30] 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? {
[6/30] 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? {
[7/30] 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? {
[8/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 [#NominalTypes]
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 |
28 |     var accept: Accept? {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[9/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 [#NominalTypes]
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 |
28 |     var accept: Accept? {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[10/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 [#NominalTypes]
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 |
28 |     var accept: Accept? {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/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 [#NominalTypes]
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 [#NominalTypes]
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
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: value of type '_' expected to be instance of class or class-constrained type
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/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 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/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 [#NominalTypes]
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
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 {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:52:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'contentType'
 50 |             }
 51 |
 52 |             guard let contentType = response.contentType else {
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'contentType'
 53 |                 completionHandler?(.success(nil))
 54 |                 return
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/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 [#NominalTypes]
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
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 {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:52:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'contentType'
 50 |             }
 51 |
 52 |             guard let contentType = response.contentType else {
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'contentType'
 53 |                 completionHandler?(.success(nil))
 54 |                 return
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/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 [#NominalTypes]
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 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 declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
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 {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:52:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'contentType'
 50 |             }
 51 |
 52 |             guard let contentType = response.contentType else {
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'contentType'
 53 |                 completionHandler?(.success(nil))
 54 |                 return
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[15/32] Compiling RESTClient HTTPStatus.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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) {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[16/32] Compiling RESTClient URLRequest+CodableBody.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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) {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[17/32] Compiling RESTClient URLRequest+Convenience.swift
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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) {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[18/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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
28 |
29 |     var contentType: ContentType? {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[19/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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
28 |
29 |     var contentType: ContentType? {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[20/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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 [#NominalTypes]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
28 |
29 |     var contentType: ContentType? {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[21/32] Compiling RESTClient Result.swift
[22/32] Compiling RESTClient _Context.swift
[23/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: value of type '_' expected to be instance of class or class-constrained type
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 49 |             fatalError("You need to set Content-Type on the URLSessionConfiguration.")
 50 |         }
[24/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: value of type '_' expected to be instance of class or class-constrained type
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 49 |             fatalError("You need to set Content-Type on the URLSessionConfiguration.")
 50 |         }
[25/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: value of type '_' expected to be instance of class or class-constrained type
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 49 |             fatalError("You need to set Content-Type on the URLSessionConfiguration.")
 50 |         }
[26/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
[27/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
BUILD FAILURE 6.3 linux