Build Information
Failed to build FHIR, reference 4.2.1 (b68fb5
), with Swift 6.1 for Wasm on 27 May 2025 17:22:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[182/217] Compiling Models FHIRError.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[183/217] Compiling Models FHIRInteger.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[184/217] Compiling Models FHIRPrimitive.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[185/217] Compiling Models FHIRRequest.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[186/217] Compiling Models FHIRRequestHandler.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[187/217] Compiling Models FHIRServer.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[188/217] Compiling Models FHIRServerResponse.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[189/217] Compiling Models FHIRString.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[190/217] Compiling Models FHIRType.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[191/217] Compiling Models FHIRURL.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[192/217] Compiling Models FHIRValidationError.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[193/217] Compiling Models FamilyMemberHistory.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[194/217] Compiling Models Flag.swift
/host/spi-builder-workspace/Sources/Models/FHIRError.swift:33:7: warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
31 | case requestNotSent(String)
32 | case requestError(Int, String)
33 | case noRequestHandlerAvailable(FHIRRequestMethod)
| `- warning: associated value 'noRequestHandlerAvailable' of 'Sendable'-conforming enum 'FHIRError' has non-sendable type 'FHIRRequestMethod'; this is an error in the Swift 6 language mode
34 | case noResponseReceived
35 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:15:13: note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
13 | Struct to describe REST request types, with a convenience method to make a request FHIR compliant.
14 | */
15 | public enum FHIRRequestMethod: String {
| `- note: consider making enum 'FHIRRequestMethod' conform to the 'Sendable' protocol
16 | case GET = "GET"
17 | case PUT = "PUT"
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:185:20: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
183 |
184 | /// Add a `_summary=true` parameter to only receive a summary of the resource.
185 | public static let summary = FHIRRequestOption(rawValue: 1)
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:188:20: warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
174 | Options to pass along to request handlers.
175 | */
176 | public struct FHIRRequestOption: OptionSet {
| `- note: consider making struct 'FHIRRequestOption' conform to the 'Sendable' protocol
177 | public let rawValue: Int
178 |
:
186 |
187 | /// Tolerate JSON validation errors when receiving a response, i.e. don't throw upon instantiation, use what's provided.
188 | public static let lenient = FHIRRequestOption(rawValue: 2)
| |- warning: static property 'lenient' is not concurrency-safe because non-'Sendable' type 'FHIRRequestOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lenient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | }
190 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Models/FHIRValidationError.swift:40:13: warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
13 | The type of the validation error.
14 | */
15 | public enum FHIRValidationErrorType: Int {
| `- note: consider making enum 'FHIRValidationErrorType' conform to the 'Sendable' protocol
16 |
17 | /// The key is mandatory but missing.
:
38 |
39 | /// The error type.
40 | public var code: FHIRValidationErrorType
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'FHIRValidationError' has non-sendable type 'FHIRValidationErrorType'; this is an error in the Swift 6 language mode
41 |
42 | /// The property key to which the error applies; may be empty for errors raised by primitives.
[195/217] Compiling Models StructureDefinition.swift
[196/217] Compiling Models StructureMap.swift
[197/217] Compiling Models Subscription.swift
[198/217] Compiling Models Substance.swift
[199/217] Compiling Models SubstanceAmount.swift
[200/217] Compiling Models SubstanceNucleicAcid.swift
[201/217] Compiling Models SubstancePolymer.swift
[202/217] Compiling Models SubstanceProtein.swift
[203/217] Compiling Models SubstanceReferenceInformation.swift
[204/217] Compiling Models SubstanceSourceMaterial.swift
[205/217] Compiling Models SubstanceSpecification.swift
[206/217] Compiling Models SupplyDelivery.swift
[207/217] Compiling Models SupplyRequest.swift
[208/217] Compiling Models Task.swift
[209/217] Compiling Models TerminologyCapabilities.swift
[210/217] Compiling Models TestReport.swift
[211/217] Compiling Models TestScript.swift
[212/217] Compiling Models Timing.swift
[213/217] Compiling Models TriggerDefinition.swift
[214/217] Compiling Models UsageContext.swift
[215/217] Compiling Models ValueSet.swift
[216/217] Compiling Models VerificationResult.swift
[217/217] Compiling Models VisionPrescription.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/168] Compiling Models ExampleScenario.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[3/168] Compiling Models ExplanationOfBenefit.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[4/168] Compiling Models Expression.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[5/168] Compiling Models Extension.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[6/168] Compiling Models FHIRAbstractBase+Factory.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[7/168] Compiling Models FHIRAbstractBase.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[8/168] Compiling Models FHIRAbstractResource.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[9/168] Compiling Models FHIRBool.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[10/168] Compiling Models FHIRCanonical.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[11/168] Compiling Models FHIRDecimal.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[12/168] Compiling Models FHIREnum.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[13/168] Compiling Models FHIRError.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[14/168] Compiling Models FHIRInteger.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[15/168] Compiling Models FHIRPrimitive.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[16/168] Compiling Models FHIRRequest.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[17/168] Compiling Models FHIRRequestHandler.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[18/168] Compiling Models FHIRServer.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[19/168] Compiling Models FHIRServerResponse.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[20/168] Compiling Models FHIRString.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[21/168] Compiling Models FHIRType.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[22/168] Compiling Models FHIRURL.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[23/168] Compiling Models FHIRValidationError.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[24/168] Compiling Models FamilyMemberHistory.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[25/168] Compiling Models Flag.swift
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[26/191] Compiling Models Account.swift
[27/191] Compiling Models ActivityDefinition.swift
[28/191] Compiling Models Address.swift
[29/191] Compiling Models AdverseEvent.swift
[30/191] Compiling Models Age.swift
[31/191] Compiling Models AllergyIntolerance.swift
[32/191] Compiling Models Annotation.swift
[33/191] Compiling Models Appointment.swift
[34/191] Compiling Models AppointmentResponse.swift
[35/191] Compiling Models Attachment.swift
[36/191] Compiling Models AuditEvent.swift
[37/191] Compiling Models BackboneElement.swift
[38/191] Compiling Models Base64Binary.swift
[39/191] Compiling Models Basic.swift
[40/191] Compiling Models Binary.swift
[41/191] Compiling Models BiologicallyDerivedProduct.swift
[42/191] Compiling Models BodyStructure.swift
[43/191] Compiling Models Bundle.swift
[44/191] Compiling Models CapabilityStatement.swift
[45/191] Compiling Models CarePlan.swift
[46/191] Compiling Models CareTeam.swift
[47/191] Compiling Models CatalogEntry.swift
[48/191] Compiling Models ChargeItem.swift
[49/191] Compiling Models ChargeItemDefinition.swift
[50/214] Compiling Models QuestionnaireResponse.swift
[51/214] Compiling Models Range.swift
[52/214] Compiling Models Ratio.swift
[53/214] Compiling Models Reference.swift
[54/214] Compiling Models RelatedArtifact.swift
[55/214] Compiling Models RelatedPerson.swift
[56/214] Compiling Models RequestGroup.swift
[57/214] Compiling Models ResearchDefinition.swift
[58/214] Compiling Models ResearchElementDefinition.swift
[59/214] Compiling Models ResearchStudy.swift
[60/214] Compiling Models ResearchSubject.swift
[61/214] Compiling Models Resource+Meta.swift
[62/214] Compiling Models Resource.swift
[63/214] Compiling Models RiskAssessment.swift
[64/214] Compiling Models RiskEvidenceSynthesis.swift
[65/214] Compiling Models SampledData.swift
[66/214] Compiling Models Schedule.swift
[67/214] Compiling Models SearchParameter.swift
[68/214] Compiling Models ServiceRequest.swift
[69/214] Compiling Models Signature.swift
[70/214] Compiling Models Slot.swift
[71/214] Compiling Models Specimen.swift
[72/214] Compiling Models SpecimenDefinition.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[73/214] Emitting module Models
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:26:37: error: cannot find type 'URLRequest' in scope
24 | Prepare a given mutable URL request with the respective method and body values.
25 | */
26 | public func prepare(request: inout URLRequest, body: Data? = nil) {
| `- error: cannot find type 'URLRequest' in scope
27 | request.httpMethod = rawValue
28 |
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:81:37: error: cannot find type 'URLRequest' in scope
79 | Prepare a given mutable URL request with the receiver's values.
80 | */
81 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
82 | headers.forEach {
83 | request.setValue($1, forHTTPHeaderField: $0.rawValue)
/host/spi-builder-workspace/Sources/Models/FHIRRequest.swift:131:37: error: cannot find type 'URLRequest' in scope
129 | Prepare a given mutable URL request with the receiver's parameters.
130 | */
131 | public func prepare(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
132 | guard parameters.count > 0 else {
133 | return
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:59:30: error: cannot find type 'URLRequest' in scope
57 | - parameter request: The request to decorate
58 | */
59 | func prepare(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
60 |
61 |
/host/spi-builder-workspace/Sources/Models/FHIRRequestHandler.swift:72:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | - returns: An appropriately configured `FHIRServerResponse` instance
71 | */
72 | func response(response: URLResponse?, data: Data?, error: Error?) -> FHIRServerResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[74/214] Compiling Models Observation.swift
[75/214] Compiling Models ObservationDefinition.swift
[76/214] Compiling Models OperationDefinition.swift
[77/214] Compiling Models OperationOutcome.swift
[78/214] Compiling Models Organization.swift
[79/214] Compiling Models OrganizationAffiliation.swift
[80/214] Compiling Models ParameterDefinition.swift
[81/214] Compiling Models Parameters.swift
[82/214] Compiling Models Patient.swift
[83/214] Compiling Models PaymentNotice.swift
[84/214] Compiling Models PaymentReconciliation.swift
[85/214] Compiling Models Period.swift
[86/214] Compiling Models Person.swift
[87/214] Compiling Models PlanDefinition.swift
[88/214] Compiling Models Population.swift
[89/214] Compiling Models Practitioner.swift
[90/214] Compiling Models PractitionerRole.swift
[91/214] Compiling Models Procedure.swift
[92/214] Compiling Models ProdCharacteristic.swift
[93/214] Compiling Models ProductShelfLife.swift
[94/214] Compiling Models Provenance.swift
[95/214] Compiling Models Quantity.swift
[96/214] Compiling Models Questionnaire.swift
[97/214] Compiling Models MedicationDispense.swift
[98/214] Compiling Models MedicationKnowledge.swift
[99/214] Compiling Models MedicationRequest.swift
[100/214] Compiling Models MedicationStatement.swift
[101/214] Compiling Models MedicinalProduct.swift
[102/214] Compiling Models MedicinalProductAuthorization.swift
[103/214] Compiling Models MedicinalProductContraindication.swift
[104/214] Compiling Models MedicinalProductIndication.swift
[105/214] Compiling Models MedicinalProductIngredient.swift
[106/214] Compiling Models MedicinalProductInteraction.swift
[107/214] Compiling Models MedicinalProductManufactured.swift
[108/214] Compiling Models MedicinalProductPackaged.swift
[109/214] Compiling Models MedicinalProductPharmaceutical.swift
[110/214] Compiling Models MedicinalProductUndesirableEffect.swift
[111/214] Compiling Models MessageDefinition.swift
[112/214] Compiling Models MessageHeader.swift
[113/214] Compiling Models Meta.swift
[114/214] Compiling Models MetadataResource.swift
[115/214] Compiling Models MolecularSequence.swift
[116/214] Compiling Models Money.swift
[117/214] Compiling Models NamingSystem.swift
[118/214] Compiling Models Narrative.swift
[119/214] Compiling Models NutritionOrder.swift
[120/214] Compiling Models Goal.swift
[121/214] Compiling Models GraphDefinition.swift
[122/214] Compiling Models Group.swift
[123/214] Compiling Models GuidanceResponse.swift
[124/214] Compiling Models HealthcareService.swift
[125/214] Compiling Models HumanName.swift
[126/214] Compiling Models Identifier.swift
[127/214] Compiling Models ImagingStudy.swift
[128/214] Compiling Models Immunization.swift
[129/214] Compiling Models ImmunizationEvaluation.swift
[130/214] Compiling Models ImmunizationRecommendation.swift
[131/214] Compiling Models ImplementationGuide.swift
[132/214] Compiling Models InsurancePlan.swift
[133/214] Compiling Models Invoice.swift
[134/214] Compiling Models Library.swift
[135/214] Compiling Models Linkage.swift
[136/214] Compiling Models List.swift
[137/214] Compiling Models Location.swift
[138/214] Compiling Models MarketingStatus.swift
[139/214] Compiling Models Measure.swift
[140/214] Compiling Models MeasureReport.swift
[141/214] Compiling Models Media.swift
[142/214] Compiling Models Medication.swift
[143/214] Compiling Models MedicationAdministration.swift
[144/214] Compiling Models DetectedIssue.swift
[145/214] Compiling Models Device.swift
[146/214] Compiling Models DeviceDefinition.swift
[147/214] Compiling Models DeviceMetric.swift
[148/214] Compiling Models DeviceRequest.swift
[149/214] Compiling Models DeviceUseStatement.swift
[150/214] Compiling Models DiagnosticReport.swift
[151/214] Compiling Models Distance.swift
[152/214] Compiling Models DocumentManifest.swift
[153/214] Compiling Models DocumentReference.swift
[154/214] Compiling Models DomainResource.swift
[155/214] Compiling Models Dosage.swift
[156/214] Compiling Models Duration.swift
[157/214] Compiling Models EffectEvidenceSynthesis.swift
[158/214] Compiling Models Element.swift
[159/214] Compiling Models ElementDefinition.swift
[160/214] Compiling Models Encounter.swift
[161/214] Compiling Models Endpoint.swift
[162/214] Compiling Models EnrollmentRequest.swift
[163/214] Compiling Models EnrollmentResponse.swift
[164/214] Compiling Models EpisodeOfCare.swift
[165/214] Compiling Models EventDefinition.swift
[166/214] Compiling Models Evidence.swift
[167/214] Compiling Models EvidenceVariable.swift
[168/214] Compiling Models Claim.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[169/214] Compiling Models ClaimResponse.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[170/214] Compiling Models ClinicalImpression.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[171/214] Compiling Models CodeSystem.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[172/214] Compiling Models CodeSystems.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[173/214] Compiling Models CodeableConcept.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[174/214] Compiling Models Coding.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[175/214] Compiling Models Communication.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[176/214] Compiling Models CommunicationRequest.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[177/214] Compiling Models CompartmentDefinition.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[178/214] Compiling Models Composition.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[179/214] Compiling Models ConceptMap.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[180/214] Compiling Models Condition.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[181/214] Compiling Models Consent.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[182/214] Compiling Models ContactDetail.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[183/214] Compiling Models ContactPoint.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[184/214] Compiling Models Contract.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[185/214] Compiling Models Contributor.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[186/214] Compiling Models Count.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[187/214] Compiling Models Coverage.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[188/214] Compiling Models CoverageEligibilityRequest.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[189/214] Compiling Models CoverageEligibilityResponse.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[190/214] Compiling Models DataRequirement.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[191/214] Compiling Models DateAndTime.swift
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:974:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
972 | #else
973 | var str: NSString?
974 | if scanString(searchString, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
975 | return str as String?
976 | }
/host/spi-builder-workspace/Sources/Models/DateAndTime.swift:986:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
984 | #else
985 | var str: NSString?
986 | if scanCharacters(from: set, into: &str) {
| |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
| `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
987 | return str as String?
988 | }
[192/214] Compiling Models StructureDefinition.swift
[193/214] Compiling Models StructureMap.swift
[194/214] Compiling Models Subscription.swift
[195/214] Compiling Models Substance.swift
[196/214] Compiling Models SubstanceAmount.swift
[197/214] Compiling Models SubstanceNucleicAcid.swift
[198/214] Compiling Models SubstancePolymer.swift
[199/214] Compiling Models SubstanceProtein.swift
[200/214] Compiling Models SubstanceReferenceInformation.swift
[201/214] Compiling Models SubstanceSourceMaterial.swift
[202/214] Compiling Models SubstanceSpecification.swift
[203/214] Compiling Models SupplyDelivery.swift
[204/214] Compiling Models SupplyRequest.swift
[205/214] Compiling Models Task.swift
[206/214] Compiling Models TerminologyCapabilities.swift
[207/214] Compiling Models TestReport.swift
[208/214] Compiling Models TestScript.swift
[209/214] Compiling Models Timing.swift
[210/214] Compiling Models TriggerDefinition.swift
[211/214] Compiling Models UsageContext.swift
[212/214] Compiling Models ValueSet.swift
[213/214] Compiling Models VerificationResult.swift
[214/214] Compiling Models VisionPrescription.swift
BUILD FAILURE 6.1 wasm