diff --git a/Tests/OpenAPIReflection30Tests/AnyJSONCaseIterableTests.swift b/Tests/OpenAPIReflection30Tests/AnyJSONCaseIterableTests.swift index a2c447c..902644f 100644 --- a/Tests/OpenAPIReflection30Tests/AnyJSONCaseIterableTests.swift +++ b/Tests/OpenAPIReflection30Tests/AnyJSONCaseIterableTests.swift @@ -7,7 +7,7 @@ import XCTest import OpenAPIKit30 -import OpenAPIReflection +import OpenAPIReflection30 class AnyJSONCaseIterableTests: XCTestCase { func test_CodableToAllCases() { diff --git a/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaInternalTests.swift b/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaInternalTests.swift index fad8fd9..3dd32c1 100644 --- a/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaInternalTests.swift +++ b/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaInternalTests.swift @@ -6,7 +6,7 @@ // import XCTest -@testable import OpenAPIReflection +@testable import OpenAPIReflection30 final class GenericOpenAPISchemaInternalTests: XCTestCase { func test_reencodedSchemaGuess() throws { diff --git a/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaTests.swift b/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaTests.swift index 9e28d57..cc0c9f1 100644 --- a/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaTests.swift +++ b/Tests/OpenAPIReflection30Tests/GenericOpenAPISchemaTests.swift @@ -7,7 +7,7 @@ import XCTest import OpenAPIKit30 -import OpenAPIReflection +import OpenAPIReflection30 import Sampleable final class GenericOpenAPISchemaTests: XCTestCase { @@ -459,7 +459,7 @@ extension GenericOpenAPISchemaTests { static let sample: Self = .init(stringValue: "hello") static func openAPISchema(using encoder: JSONEncoder) throws -> JSONSchema { - try OpenAPIReflection.genericOpenAPISchemaGuess(for: sample, using: encoder) + try OpenAPIReflection30.genericOpenAPISchemaGuess(for: sample, using: encoder) } } diff --git a/Tests/OpenAPIReflection30Tests/SchemaWithExampleTests.swift b/Tests/OpenAPIReflection30Tests/SchemaWithExampleTests.swift index 5d97d4b..e6e63ff 100644 --- a/Tests/OpenAPIReflection30Tests/SchemaWithExampleTests.swift +++ b/Tests/OpenAPIReflection30Tests/SchemaWithExampleTests.swift @@ -8,7 +8,7 @@ import XCTest import Foundation import OpenAPIKit30 -import OpenAPIReflection +import OpenAPIReflection30 import Sampleable final class SchemaWithExampleTests: XCTestCase { diff --git a/Tests/OpenAPIReflection30Tests/SwiftPrimitiveExtensionsTests.swift b/Tests/OpenAPIReflection30Tests/SwiftPrimitiveExtensionsTests.swift index 911ec5f..9f856af 100644 --- a/Tests/OpenAPIReflection30Tests/SwiftPrimitiveExtensionsTests.swift +++ b/Tests/OpenAPIReflection30Tests/SwiftPrimitiveExtensionsTests.swift @@ -7,8 +7,8 @@ import XCTest import Foundation -import OpenAPIReflection import OpenAPIKit30 +import OpenAPIReflection30 class SwiftPrimitiveTypesTests: XCTestCase { func test_OptionalCaseIterableNodeAllCases() { diff --git a/Tests/OpenAPIReflectionTests/AnyJSONCaseIterableTests.swift b/Tests/OpenAPIReflectionTests/AnyJSONCaseIterableTests.swift index a2c447c..ae5a479 100644 --- a/Tests/OpenAPIReflectionTests/AnyJSONCaseIterableTests.swift +++ b/Tests/OpenAPIReflectionTests/AnyJSONCaseIterableTests.swift @@ -6,7 +6,7 @@ // import XCTest -import OpenAPIKit30 +import OpenAPIKit import OpenAPIReflection class AnyJSONCaseIterableTests: XCTestCase { diff --git a/Tests/OpenAPIReflectionTests/GenericOpenAPISchemaTests.swift b/Tests/OpenAPIReflectionTests/GenericOpenAPISchemaTests.swift index 87ef5e2..07e6c56 100644 --- a/Tests/OpenAPIReflectionTests/GenericOpenAPISchemaTests.swift +++ b/Tests/OpenAPIReflectionTests/GenericOpenAPISchemaTests.swift @@ -6,7 +6,7 @@ // import XCTest -import OpenAPIKit30 +import OpenAPIKit import OpenAPIReflection import Sampleable diff --git a/Tests/OpenAPIReflectionTests/SchemaWithExampleTests.swift b/Tests/OpenAPIReflectionTests/SchemaWithExampleTests.swift index 5d97d4b..b15d3e7 100644 --- a/Tests/OpenAPIReflectionTests/SchemaWithExampleTests.swift +++ b/Tests/OpenAPIReflectionTests/SchemaWithExampleTests.swift @@ -7,7 +7,7 @@ import XCTest import Foundation -import OpenAPIKit30 +import OpenAPIKit import OpenAPIReflection import Sampleable @@ -45,13 +45,13 @@ final class SchemaWithExampleTests: XCTestCase { expectedSchema.objectContext ) - XCTAssertNotNil(schemaGuess.example) + XCTAssertFalse(schemaGuess.examples.isEmpty) // equality checks on AnyCodable are finicky but // they compare equally when encoded to data. XCTAssertEqual( - try testEncoder.encode(schemaGuess.example), - try testEncoder.encode(expectedSchema.example) + try testEncoder.encode(schemaGuess.examples), + try testEncoder.encode(expectedSchema.examples) ) } } diff --git a/Tests/OpenAPIReflectionTests/SwiftPrimitiveExtensionsTests.swift b/Tests/OpenAPIReflectionTests/SwiftPrimitiveExtensionsTests.swift index 911ec5f..b2cf39f 100644 --- a/Tests/OpenAPIReflectionTests/SwiftPrimitiveExtensionsTests.swift +++ b/Tests/OpenAPIReflectionTests/SwiftPrimitiveExtensionsTests.swift @@ -8,7 +8,7 @@ import XCTest import Foundation import OpenAPIReflection -import OpenAPIKit30 +import OpenAPIKit class SwiftPrimitiveTypesTests: XCTestCase { func test_OptionalCaseIterableNodeAllCases() {