Skip to content

Commit 3d0c638

Browse files
committed
test: Run uri format tests
1 parent 50c180b commit 3d0c638

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Tests/Cases

Submodule Cases updated from 8f86716 to 9567c58

Tests/JSONSchemaCases.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,21 @@ class JSONSchemaCases: XCTestCase {
4141

4242
// Optionals
4343
"bignum.json",
44-
"format.json",
4544
]
4645
return path.hasSuffix(".json") && !blacklist.contains(path)
4746
}
4847

4948
let cases = suites.map { (file) -> [Case] in
5049
let suite = JSONFixture(file, forObject: self)
50+
51+
if file == "format.json" {
52+
let cases = suite.map(makeCase(file))
53+
return cases.filter {
54+
let format = $0.schema["format"] as! String
55+
return !["date-time", "email", "hostname"].contains(format)
56+
}
57+
}
58+
5159
return suite.map(makeCase(file))
5260
}
5361

0 commit comments

Comments
 (0)