Skip to content

Commit

Permalink
Raise minimum Yams version.
Browse files Browse the repository at this point in the history
Fixes #364
  • Loading branch information
brandonbloom committed Apr 1, 2024
1 parent 979315e commit ce2a53a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
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

0 comments on commit ce2a53a

Please sign in to comment.