Skip to content

Commit b2d8352

Browse files
committed
Add missing imports to fix Swift 6.1+
1 parent 9c01b32 commit b2d8352

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

Sources/_OpenAPIGeneratorCore/Extensions/SwiftStandardLibrary.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// SPDX-License-Identifier: Apache-2.0
1212
//
1313
//===----------------------------------------------------------------------===//
14+
import Foundation
15+
1416
extension Int {
1517
/// Returns the digits for the number using the specified radix.
1618
/// - Parameter radix: The radix used to format the integer.

Sources/_OpenAPIGeneratorCore/Translator/CommonTypes/StructBlueprint.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414
import OpenAPIKit
15+
import Foundation
1516

1617
/// A structure that contains the information about an OpenAPI object that is
1718
/// required to generate a matching Swift structure.

Sources/_OpenAPIGeneratorCore/Translator/Content/ContentInspector.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414
import OpenAPIKit
15+
import Foundation
1516

1617
/// Utilities for asking questions about OpenAPI.Content
1718
extension FileTranslator {

Sources/_OpenAPIGeneratorCore/Translator/TypesTranslator/translateServersVariables.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414
import OpenAPIKit
15+
import Foundation
1516

1617
/// Represents a server variable and the function of generation that should be applied.
1718
protocol ServerVariableGenerator {

0 commit comments

Comments
 (0)