File tree Expand file tree Collapse file tree 6 files changed +11
-15
lines changed
Tests/OpenAPIRuntimeTests/URICoder Expand file tree Collapse file tree 6 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414#if canImport(Darwin)
15- import Foundation
15+ import class Foundation. JSONEncoder
1616#else
1717@preconcurrency import class Foundation. JSONEncoder
18- @preconcurrency import class Foundation. JSONDecoder
1918#endif
19+ import class Foundation. JSONDecoder
2020
2121/// Converter between generated and HTTP currency types.
2222@_spi ( Generated) public struct Converter : Sendable {
Original file line number Diff line number Diff line change 1414
1515import HTTPTypes
1616#if canImport(Darwin)
17- import Foundation
17+ import struct Foundation. URL
1818#else
1919@preconcurrency import struct Foundation. URL
20- @preconcurrency import protocol Foundation. LocalizedError
2120#endif
21+ import protocol Foundation. LocalizedError
2222
2323/// An error thrown by a client performing an OpenAPI operation.
2424///
Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414
1515import HTTPTypes
16- #if canImport(Darwin)
1716import struct Foundation. URL
18- #else
19- @preconcurrency import struct Foundation. URL
20- #endif
2117
2218/// A type that performs HTTP operations.
2319///
Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414import HTTPTypes
1515#if canImport(Darwin)
16- import Foundation
16+ import struct Foundation. URL
1717#else
1818@preconcurrency import struct Foundation. URL
1919#endif
Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414
1515import HTTPTypes
16-
1716#if canImport(Darwin)
1817import struct Foundation. URL
19- import struct Foundation. URLComponents
2018#else
2119@preconcurrency import struct Foundation. URL
22- @preconcurrency import struct Foundation. URLComponents
2320#endif
21+ import struct Foundation. URLComponents
2422
2523/// OpenAPI document-agnostic HTTP server used by OpenAPI document-specific,
2624/// generated servers to perform request deserialization, middleware and handler
Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414import 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
1819#endif
20+ @_spi ( Generated) @testable import OpenAPIRuntime
1921
2022final class Test_URICodingRoundtrip : Test_Runtime {
2123
You can’t perform that action at this time.
0 commit comments