Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/OpenAPIRuntime/Conversion/Converter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenAPIRuntime/Errors/ClientError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions Sources/OpenAPIRuntime/Interface/UniversalClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion Sources/OpenAPIRuntime/Interface/UniversalServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down