Skip to content

Commit a256492

Browse files
committed
Fix missing imports detected by Swift 6.1+
1 parent 07e23e2 commit a256492

10 files changed

+11
-2
lines changed

Sources/OpenAPIRuntime/Base/Acceptable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// SPDX-License-Identifier: Apache-2.0
1212
//
1313
//===----------------------------------------------------------------------===//
14+
import Foundation
1415

1516
/// The protocol that all generated `AcceptableContentType` enums conform to.
1617
public protocol AcceptableProtocol: RawRepresentable, Sendable, Hashable, CaseIterable where RawValue == String {}

Sources/OpenAPIRuntime/Base/ContentDisposition.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// SPDX-License-Identifier: Apache-2.0
1212
//
1313
//===----------------------------------------------------------------------===//
14+
import Foundation
1415

1516
/// A parsed representation of the `content-disposition` header described by RFC 6266 containing only
1617
/// the features relevant to OpenAPI multipart bodies.

Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import HTTPTypes
16+
import Foundation
1617

1718
/// A container for request metadata already parsed and validated
1819
/// by the server transport.

Sources/OpenAPIRuntime/Multipart/MultipartBoundaryGenerator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// SPDX-License-Identifier: Apache-2.0
1212
//
1313
//===----------------------------------------------------------------------===//
14+
import Foundation
1415

1516
/// A generator of a new boundary string used by multipart messages to separate parts.
1617
public protocol MultipartBoundaryGenerator: Sendable {

Tests/OpenAPIRuntimeTests/Base/Test_OpenAPIValue.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414
import XCTest
15-
#if canImport(Foundation)
16-
@preconcurrency import Foundation
15+
import Foundation
16+
#if canImport(CoreFoundation)
1717
import CoreFoundation
1818
#endif
1919
@_spi(Generated) @testable import OpenAPIRuntime

Tests/OpenAPIRuntimeTests/Multipart/Test_MultipartBytesToFramesSequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import XCTest
1515
@_spi(Generated) @testable import OpenAPIRuntime
1616
import Foundation
17+
import HTTPTypes
1718

1819
final class Test_MultipartBytesToFramesSequence: Test_Runtime {
1920
func test() async throws {

Tests/OpenAPIRuntimeTests/Multipart/Test_MultipartFramesToBytesSequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import XCTest
1515
@_spi(Generated) @testable import OpenAPIRuntime
1616
import Foundation
17+
import HTTPTypes
1718

1819
final class Test_MultipartFramesToBytesSequence: Test_Runtime {
1920
func test() async throws {

Tests/OpenAPIRuntimeTests/Multipart/Test_MultipartFramesToRawPartsSequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import XCTest
1515
@_spi(Generated) @testable import OpenAPIRuntime
1616
import Foundation
17+
import HTTPTypes
1718

1819
final class Test_MultipartFramesToRawPartsSequence: Test_Runtime {
1920
func test() async throws {

Tests/OpenAPIRuntimeTests/Multipart/Test_MultipartRawPartsToFramesSequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import XCTest
1515
@_spi(Generated) @testable import OpenAPIRuntime
1616
import Foundation
17+
import HTTPTypes
1718

1819
final class Test_MultipartRawPartsToFramesSequence: Test_Runtime {
1920
func test() async throws {

Tests/OpenAPIRuntimeTests/Multipart/Test_MultipartValidationSequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import XCTest
1515
@_spi(Generated) @testable import OpenAPIRuntime
1616
import Foundation
17+
import HTTPTypes
1718

1819
final class Test_MultipartValidationSequence: Test_Runtime {
1920
func test() async throws {

0 commit comments

Comments
 (0)