File tree 6 files changed +11
-15
lines changed
Tests/OpenAPIRuntimeTests/URICoder 6 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
#if canImport(Darwin)
15
- import Foundation
15
+ import class Foundation. JSONEncoder
16
16
#else
17
17
@preconcurrency import class Foundation. JSONEncoder
18
- @preconcurrency import class Foundation. JSONDecoder
19
18
#endif
19
+ import class Foundation. JSONDecoder
20
20
21
21
/// Converter between generated and HTTP currency types.
22
22
@_spi ( Generated) public struct Converter : Sendable {
Original file line number Diff line number Diff line change 14
14
15
15
import HTTPTypes
16
16
#if canImport(Darwin)
17
- import Foundation
17
+ import struct Foundation. URL
18
18
#else
19
19
@preconcurrency import struct Foundation. URL
20
- @preconcurrency import protocol Foundation. LocalizedError
21
20
#endif
21
+ import protocol Foundation. LocalizedError
22
22
23
23
/// An error thrown by a client performing an OpenAPI operation.
24
24
///
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
15
15
import HTTPTypes
16
- #if canImport(Darwin)
17
16
import struct Foundation. URL
18
- #else
19
- @preconcurrency import struct Foundation. URL
20
- #endif
21
17
22
18
/// A type that performs HTTP operations.
23
19
///
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
import HTTPTypes
15
15
#if canImport(Darwin)
16
- import Foundation
16
+ import struct Foundation. URL
17
17
#else
18
18
@preconcurrency import struct Foundation. URL
19
19
#endif
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
15
15
import HTTPTypes
16
-
17
16
#if canImport(Darwin)
18
17
import struct Foundation. URL
19
- import struct Foundation. URLComponents
20
18
#else
21
19
@preconcurrency import struct Foundation. URL
22
- @preconcurrency import struct Foundation. URLComponents
23
20
#endif
21
+ import struct Foundation. URLComponents
24
22
25
23
/// OpenAPI document-agnostic HTTP server used by OpenAPI document-specific,
26
24
/// generated servers to perform request deserialization, middleware and handler
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
import XCTest
15
- @_spi ( Generated) @testable import OpenAPIRuntime
16
- #if os(Linux)
17
- @preconcurrency import Foundation
15
+ #if canImport(Darwin) || swift(>=5.9.1)
16
+ import struct Foundation. Date
17
+ #else
18
+ @preconcurrency import struct Foundation. Date
18
19
#endif
20
+ @_spi ( Generated) @testable import OpenAPIRuntime
19
21
20
22
final class Test_URICodingRoundtrip : Test_Runtime {
21
23
You can’t perform that action at this time.
0 commit comments