Skip to content

Commit 260a2d2

Browse files
committed
deps: Update json-schema-validator version 2.0.0
Signed-off-by: Frank Viernau <[email protected]>
1 parent 2298e80 commit 260a2d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jgit = "7.4.0.202509020913-r"
3636
jiraRestClient = "7.0.1"
3737
jruby = "10.0.2.0"
3838
jslt = "0.1.14"
39-
jsonSchemaValidator = "1.5.9"
39+
jsonSchemaValidator = "2.0.0"
4040
kaml = "0.102.0"
4141
kotest = "6.0.4"
4242
kotlinPoet = "2.2.0"

utils/test/src/main/kotlin/Matchers.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import com.github.difflib.DiffUtils
2323
import com.github.difflib.UnifiedDiffUtils
2424

2525
import com.networknt.schema.InputFormat as NetworkNtInputFormat
26-
import com.networknt.schema.JsonSchemaFactory
27-
import com.networknt.schema.SpecVersion
26+
import com.networknt.schema.SchemaRegistry
27+
import com.networknt.schema.SpecificationVersion
2828

2929
import io.kotest.assertions.eq.EqMatcher
3030
import io.kotest.matchers.Matcher
@@ -135,7 +135,7 @@ enum class InputFormat(internal val networkNtInputformat: NetworkNtInputFormat)
135135

136136
fun matchJsonSchema(schemaJson: String, inputFormat: InputFormat = InputFormat.JSON): Matcher<String> =
137137
Matcher { actual ->
138-
val schema = JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V7).getSchema(schemaJson)
138+
val schema = SchemaRegistry.withDefaultDialect(SpecificationVersion.DRAFT_7).getSchema(schemaJson)
139139
val violations = schema.validate(actual, inputFormat.networkNtInputformat)
140140

141141
MatcherResult(

0 commit comments

Comments
 (0)