File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
utils/test/src/main/kotlin Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ jgit = "7.4.0.202509020913-r"
3636jiraRestClient = " 7.0.1"
3737jruby = " 10.0.2.0"
3838jslt = " 0.1.14"
39- jsonSchemaValidator = " 1.5.9 "
39+ jsonSchemaValidator = " 2.0.0 "
4040kaml = " 0.102.0"
4141kotest = " 6.0.4"
4242kotlinPoet = " 2.2.0"
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ import com.github.difflib.DiffUtils
2323import com.github.difflib.UnifiedDiffUtils
2424
2525import 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
2929import io.kotest.assertions.eq.EqMatcher
3030import io.kotest.matchers.Matcher
@@ -135,7 +135,7 @@ enum class InputFormat(internal val networkNtInputformat: NetworkNtInputFormat)
135135
136136fun 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 (
You can’t perform that action at this time.
0 commit comments