Skip to content

Commit b559ea1

Browse files
Resolve code that was failing format check workflow
1 parent 4d8a719 commit b559ea1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Sources/_OpenAPIGeneratorCore/Translator/TypesTranslator/translateServers.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ extension TypesFileTranslator {
8585
/// - index: The index of the server in the list of servers defined
8686
/// in the OpenAPI document.
8787
/// - server: The server URL information.
88+
/// - pathToReplacementSymbol: The Swift path of the symbol
89+
/// which has resulted in the deprecation of this symbol.
8890
/// - Returns: A static function declaration.
8991
func translateServerAsDeprecated(index: Int, server: OpenAPI.Server, renamedTo pathToReplacementSymbol: String) -> Declaration {
9092
let serverVariables = translateServerVariables(index: index, server: server, generateAsEnum: false)

Sources/_OpenAPIGeneratorCore/Translator/TypesTranslator/translateServersVariables.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ extension TypesFileTranslator {
2121
/// - index: The index of the server in the list of servers defined
2222
/// in the OpenAPI document.
2323
/// - server: The server variables information.
24+
/// - generateAsEnum: Whether the enum generator is allowed, if `false`
25+
/// only `RawStringTranslatedServerVariable` generators will be returned.
2426
/// - Returns: A declaration of the server variables namespace, or `nil` if no
2527
/// variables are declared.
2628
func translateServerVariables(index: Int, server: OpenAPI.Server, generateAsEnum: Bool) -> [any ServerVariableGenerator] {

0 commit comments

Comments
 (0)