Skip to content

Commit ce2a53a

Browse files
committed
Raise minimum Yams version.
Fixes #364
1 parent 979315e commit ce2a53a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"kind" : "remoteSourceControl",
2424
"location" : "https://github.com/jpsim/Yams.git",
2525
"state" : {
26-
"revision" : "9ff1cc9327586db4e0c8f46f064b6a82ec1566fa",
27-
"version" : "4.0.6"
26+
"revision" : "8a835d918245ca22f36663dd3862138805d7f707",
27+
"version" : "5.1.0"
2828
}
2929
}
3030
],

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let package = Package(
2121
],
2222
dependencies: [
2323
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
24-
.package(url: "https://github.com/jpsim/Yams.git", "4.0.0"..<"6.0.0") // just for tests
24+
.package(url: "https://github.com/jpsim/Yams.git", "5.1.0"..<"6.0.0") // just for tests
2525
],
2626
targets: [
2727
.target(

Tests/OpenAPIKitTests/Schema Object/SchemaObjectYamsTests.swift

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ import OpenAPIKit
1616
import Yams
1717

1818
final class SchemaObjectYamsTests: XCTestCase {
19+
func test_nullTypeDecode() throws {
20+
let nullString =
21+
"""
22+
type: 'null'
23+
"""
24+
25+
let null = try YAMLDecoder().decode(JSONSchema.self, from: nullString)
26+
27+
XCTAssertEqual(
28+
null,
29+
JSONSchema.null()
30+
)
31+
}
32+
1933
func test_floatingPointWholeNumberIntegerDecode() throws {
2034
let integerString =
2135
"""

0 commit comments

Comments
 (0)