Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/OpenAPIRuntime/Conversion/ParameterStyles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extension ParameterStyle {

/// Returns the default value of the explode field for the given style
/// - Parameter style: The parameter style.
/// - Returns: Bool - True if the style is form, otherwise false
static func defaultExplodeFor(forStyle style: ParameterStyle) -> Bool {
style == .form
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/OpenAPIRuntimeTests/Base/Test_OpenAPIValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@_spi(Generated)@testable import OpenAPIRuntime
@_spi(Generated) @testable import OpenAPIRuntime

final class Test_OpenAPIValue: Test_Runtime {

Expand Down
2 changes: 1 addition & 1 deletion Tests/OpenAPIRuntimeTests/Deprecated/Test_Deprecated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@_spi(Generated)@testable import OpenAPIRuntime
@_spi(Generated) @testable import OpenAPIRuntime

final class Test_Deprecated: Test_Runtime {
// Tests for deprecated code goes here.
Expand Down
4 changes: 2 additions & 2 deletions Tests/OpenAPIRuntimeTests/Interface/Test_HTTPBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@_spi(Generated)@testable import OpenAPIRuntime
@_spi(Generated) @testable import OpenAPIRuntime
import Foundation

final class Test_Body: Test_Runtime {
Expand Down Expand Up @@ -184,7 +184,7 @@ final class Test_Body: Test_Runtime {
}
XCTAssertEqual(chunks, ["hel", "lo"].map { Array($0.utf8)[...] })
}

func testUTF8String() async throws {
XCTAssertEqual(HTTPBody("abc").length, .known(3))
XCTAssertEqual(HTTPBody("🤘").length, .known(4))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@_spi(Generated)@testable import OpenAPIRuntime
@_spi(Generated) @testable import OpenAPIRuntime

final class Test_UniversalServer: Test_Runtime {

Expand Down
1 change: 1 addition & 0 deletions Tests/OpenAPIRuntimeTests/Test_Runtime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import HTTPTypes

class Test_Runtime: XCTestCase {

/// setUp tests
override func setUp() async throws {
try await super.setUp()
continueAfterFailure = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@_spi(Generated)@testable import OpenAPIRuntime
@_spi(Generated) @testable import OpenAPIRuntime
#if os(Linux)
@preconcurrency import Foundation
#endif
Expand Down