Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise minimum Yams version. #366

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/Yams.git",
"state" : {
"revision" : "9ff1cc9327586db4e0c8f46f064b6a82ec1566fa",
"version" : "4.0.6"
"revision" : "8a835d918245ca22f36663dd3862138805d7f707",
"version" : "5.1.0"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/jpsim/Yams.git", "4.0.0"..<"6.0.0") // just for tests
.package(url: "https://github.com/jpsim/Yams.git", "5.1.0"..<"6.0.0") // just for tests
],
targets: [
.target(
Expand Down
14 changes: 14 additions & 0 deletions Tests/OpenAPIKitTests/Schema Object/SchemaObjectYamsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ import OpenAPIKit
import Yams

final class SchemaObjectYamsTests: XCTestCase {
func test_nullTypeDecode() throws {
let nullString =
"""
type: 'null'
"""

let null = try YAMLDecoder().decode(JSONSchema.self, from: nullString)

XCTAssertEqual(
null,
JSONSchema.null()
)
}

func test_floatingPointWholeNumberIntegerDecode() throws {
let integerString =
"""
Expand Down
Loading