diff --git a/Sources/OpenAPIRuntime/Conversion/Converter.swift b/Sources/OpenAPIRuntime/Conversion/Converter.swift index 8dc638cb..2cf78d99 100644 --- a/Sources/OpenAPIRuntime/Conversion/Converter.swift +++ b/Sources/OpenAPIRuntime/Conversion/Converter.swift @@ -14,8 +14,8 @@ #if canImport(Darwin) import Foundation #else -// `@preconcrrency` is for `JSONDecoder`/`JSONEncoder`. -@preconcurrency import Foundation +@preconcurrency import class Foundation.JSONEncoder +@preconcurrency import class Foundation.JSONDecoder #endif /// Converter between generated and HTTP currency types. diff --git a/Sources/OpenAPIRuntime/Deprecated/Deprecated_RedactedHeaderFields.swift b/Sources/OpenAPIRuntime/Deprecated/Deprecated_RedactedHeaderFields.swift index 0ae64e12..ccc7e115 100644 --- a/Sources/OpenAPIRuntime/Deprecated/Deprecated_RedactedHeaderFields.swift +++ b/Sources/OpenAPIRuntime/Deprecated/Deprecated_RedactedHeaderFields.swift @@ -14,7 +14,7 @@ #if canImport(Darwin) import Foundation #else -@preconcurrency import Foundation +@preconcurrency import class Foundation.NSLock #endif /// A protected-by-locks storage for ``redactedHeaderFields``. diff --git a/Sources/OpenAPIRuntime/Errors/ClientError.swift b/Sources/OpenAPIRuntime/Errors/ClientError.swift index ce9ff17e..0bd5d349 100644 --- a/Sources/OpenAPIRuntime/Errors/ClientError.swift +++ b/Sources/OpenAPIRuntime/Errors/ClientError.swift @@ -14,8 +14,8 @@ #if canImport(Darwin) import Foundation #else -// `@preconcrrency` is for `URL`. -@preconcurrency import Foundation +@preconcurrency import struct Foundation.URL +@preconcurrency import protocol Foundation.LocalizedError #endif /// An error thrown by a client performing an OpenAPI operation. diff --git a/Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift b/Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift index aab24761..65bc6584 100644 --- a/Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift +++ b/Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift @@ -14,8 +14,8 @@ #if canImport(Darwin) import Foundation #else -// `@preconcrrency` is for `Data`/`URLQueryItem`. -@preconcurrency import Foundation +@preconcurrency import struct Foundation.Data +@preconcurrency import struct Foundation.URLQueryItem #endif /// A header field used in an HTTP request or response. diff --git a/Sources/OpenAPIRuntime/Interface/UniversalClient.swift b/Sources/OpenAPIRuntime/Interface/UniversalClient.swift index 9b1a7746..7e486328 100644 --- a/Sources/OpenAPIRuntime/Interface/UniversalClient.swift +++ b/Sources/OpenAPIRuntime/Interface/UniversalClient.swift @@ -14,8 +14,7 @@ #if canImport(Darwin) import Foundation #else -// `@preconcrrency` is for `URL`. -@preconcurrency import Foundation +@preconcurrency import struct Foundation.URL #endif /// OpenAPI document-agnostic HTTP client used by OpenAPI document-specific, diff --git a/Sources/OpenAPIRuntime/Interface/UniversalServer.swift b/Sources/OpenAPIRuntime/Interface/UniversalServer.swift index 7e57f5c4..e6c862b6 100644 --- a/Sources/OpenAPIRuntime/Interface/UniversalServer.swift +++ b/Sources/OpenAPIRuntime/Interface/UniversalServer.swift @@ -14,7 +14,8 @@ #if canImport(Darwin) import Foundation #else -@preconcurrency import Foundation +@preconcurrency import struct Foundation.URL +@preconcurrency import struct Foundation.URLComponents #endif /// OpenAPI document-agnostic HTTP server used by OpenAPI document-specific,