Skip to content
4 changes: 2 additions & 2 deletions Sources/OpenAPIRuntime/Conversion/Converter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
//
//===----------------------------------------------------------------------===//
#if canImport(Darwin)
import Foundation
import class Foundation.JSONEncoder
#else
@preconcurrency import class Foundation.JSONEncoder
@preconcurrency import class Foundation.JSONDecoder
#endif
Comment thread
czechboy0 marked this conversation as resolved.
import class Foundation.JSONDecoder

/// Converter between generated and HTTP currency types.
@_spi(Generated) public struct Converter: Sendable {
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,11 +14,11 @@

import HTTPTypes
#if canImport(Darwin)
import Foundation
import struct Foundation.URL
#else
@preconcurrency import struct Foundation.URL
@preconcurrency import protocol Foundation.LocalizedError
#endif
import protocol Foundation.LocalizedError

/// An error thrown by a client performing an OpenAPI operation.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenAPIRuntime/Interface/UniversalClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
import HTTPTypes
#if canImport(Darwin)
import Foundation
import struct Foundation.URL
#else
@preconcurrency import struct Foundation.URL
#endif
Expand Down
5 changes: 2 additions & 3 deletions Sources/OpenAPIRuntime/Interface/UniversalServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
//===----------------------------------------------------------------------===//

import HTTPTypes

#if canImport(Darwin)
import struct Foundation.URL
import struct Foundation.URLComponents
#else
@preconcurrency import struct Foundation.URL
@preconcurrency import struct Foundation.URLComponents
#endif
import struct Foundation.URLComponents


/// OpenAPI document-agnostic HTTP server used by OpenAPI document-specific,
/// generated servers to perform request deserialization, middleware and handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
//===----------------------------------------------------------------------===//
import XCTest
@_spi(Generated) @testable import OpenAPIRuntime
#if os(Linux)
@preconcurrency import Foundation
#endif

final class Test_URICodingRoundtrip: Test_Runtime {

Expand Down