Skip to content

Commit fd36315

Browse files
Bump com.networknt:json-schema-validator from 1.5.8 to 2.0.0 (#346)
Bumps [com.networknt:json-schema-validator](https://github.com/networknt/json-schema-validator) from 1.5.8 to 2.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/networknt/json-schema-validator/releases">com.networknt:json-schema-validator's releases</a>.</em></p> <blockquote> <h2>2.0.0- 2025-10-25</h2> <h3>Added</h3> <h3>Changed</h3> <ul> <li>Fix ref with sibling id from 2019-09 (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1203">#1203</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor walk and update docs (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1202">#1202</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix matching of $ when there are trailing newlines (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1201">#1201</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor evaluation context out from validator state (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1199">#1199</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Main refactor for 2.x (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1198">#1198</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor set to list in execution context (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1197">#1197</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor and remove validation message handler (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1196">#1196</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Add benchmark for performance regression testing (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1195">#1195</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> </ul> <h2>1.5.9- 2025-09-13</h2> <h3>Added</h3> <h3>Changed</h3> <ul> <li>Fix idn-hostname format and update json schema test suite (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1191">#1191</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix JoniRegularExpression compatibility issues with ECMA-262 (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1193">#1193</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix time format validation (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1188">#1188</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix eclipse junit issue due to m2e-core (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1189">#1189</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Support readOnly and writeOnly for required validation (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1186">#1186</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Spanish translations (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1183">#1183</a>) Thanks <a href="https://github.com/MickMonaghanGW"><code>@​MickMonaghanGW</code></a></li> <li>Upgrade to ITU 1.14.0 (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1184">#1184</a>) Thanks <a href="https://github.com/ethlo"><code>@​ethlo</code></a></li> <li>Add mpenet/legba to list of librairies (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1181">#1181</a>) Thanks <a href="https://github.com/mpenet"><code>@​mpenet</code></a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/networknt/json-schema-validator/blob/master/CHANGELOG.md">com.networknt:json-schema-validator's changelog</a>.</em></p> <blockquote> <h1>Change Log</h1> <p>All notable changes to this project will be documented in this file.</p> <p>This format is based on <a href="http://keepachangelog.com/">Keep a Changelog</a>.</p> <p>This project does not adhere to <a href="https://semver.org/">Semantic Versioning</a> and minor version changes can have incompatible API changes. These incompatible API changes will largely affect those who have custom validator or walker implementations. Those who just use the library to validate using the standard JSON Schema Draft specifications may not need changes.</p> <h2>[Unreleased]</h2> <h3>Added</h3> <h3>Changed</h3> <h2>2.0.0- 2025-10-25</h2> <h3>Added</h3> <h3>Changed</h3> <ul> <li>Fix ref with sibling id from 2019-09 (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1203">#1203</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor walk and update docs (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1202">#1202</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix matching of $ when there are trailing newlines (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1201">#1201</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor evaluation context out from validator state (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1199">#1199</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Main refactor for 2.x (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1198">#1198</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor set to list in execution context (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1197">#1197</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Refactor and remove validation message handler (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1196">#1196</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Add benchmark for performance regression testing (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1195">#1195</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> </ul> <h2>1.5.9- 2025-09-13</h2> <h3>Added</h3> <h3>Changed</h3> <ul> <li>Fix idn-hostname format and update json schema test suite (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1191">#1191</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix JoniRegularExpression compatibility issues with ECMA-262 (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1193">#1193</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix time format validation (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1188">#1188</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Fix eclipse junit issue due to m2e-core (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1189">#1189</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Support readOnly and writeOnly for required validation (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1186">#1186</a>) Thanks <a href="https://github.com/justin-tay"><code>@​justin-tay</code></a></li> <li>Spanish translations (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1183">#1183</a>) Thanks <a href="https://github.com/MickMonaghanGW"><code>@​MickMonaghanGW</code></a></li> <li>Upgrade to ITU 1.14.0 (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1184">#1184</a>) Thanks <a href="https://github.com/ethlo"><code>@​ethlo</code></a></li> <li>Add mpenet/legba to list of librairies (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1181">#1181</a>) Thanks <a href="https://github.com/mpenet"><code>@​mpenet</code></a></li> </ul> <h2>1.5.8- 2025-06-27</h2> <h3>Added</h3> <h3>Changed</h3> <ul> <li>upgrade maven-gpg to 3.2.7</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/networknt/json-schema-validator/commit/0dde00ce3386c33335f6531478f06b4c6dbec061"><code>0dde00c</code></a> upgrade to 2.0.0 and update changelog</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/b4abbc296cb421ebb0ba59e866d16099a2f62803"><code>b4abbc2</code></a> Fix ref with sibling id from 2019-09 (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1203">#1203</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/7bebfebbbee6f7160564fadb97b3d41f44bf949b"><code>7bebfeb</code></a> Refactor walk and update docs (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1202">#1202</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/4dbdc9f0edd5722637050217465b67fa265cbabd"><code>4dbdc9f</code></a> Fix matching of $ when there are trailing newlines (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1201">#1201</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/9527f4ae64fe9cd55c7f46bd2e627342abbdc1c0"><code>9527f4a</code></a> Refactor evaluation context out from validator state (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1199">#1199</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/e880dd0aa16a52098aa6eea25d688275ac1590d9"><code>e880dd0</code></a> Main refactor for 2.x (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1198">#1198</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/02a6e06b0ccb349c997cbf985f1399821ea9a663"><code>02a6e06</code></a> Refactor set to list in execution context (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1197">#1197</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/19b2207b709fea5cb87aedcc34895682efa9dbdc"><code>19b2207</code></a> Refactor and remove validation message handler (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1196">#1196</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/db7178048d124e908effc2b42b52f07d894f05ee"><code>db71780</code></a> Add benchmark for performance regression testing (<a href="https://redirect.github.com/networknt/json-schema-validator/issues/1195">#1195</a>)</li> <li><a href="https://github.com/networknt/json-schema-validator/commit/e78c38895c6e63226417c1851b14e55f1facdaf7"><code>e78c388</code></a> update tag number</li> <li>Additional commits viewable in <a href="https://github.com/networknt/json-schema-validator/compare/1.5.8...2.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.networknt:json-schema-validator&package-manager=gradle&previous-version=1.5.8&new-version=2.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Oleg Smirnov <oleg31101996@gmail.com>
1 parent e9601b4 commit fd36315

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

benchmark/src/jvmMain/kotlin/io/github/optimumcode/json/schema/benchmark/AbstractComparisonBenchmark.kt

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ package io.github.optimumcode.json.schema.benchmark
22

33
import com.fasterxml.jackson.databind.JsonNode
44
import com.fasterxml.jackson.databind.ObjectMapper
5-
import com.networknt.schema.JsonSchemaFactory
5+
import com.networknt.schema.InputFormat
66
import com.networknt.schema.OutputFormat
7-
import com.networknt.schema.PathType
8-
import com.networknt.schema.SchemaValidatorsConfig
9-
import com.networknt.schema.SpecVersion.VersionFlag.V7
7+
import com.networknt.schema.SchemaRegistry
8+
import com.networknt.schema.dialect.Dialects
109
import com.networknt.schema.output.OutputFlag
1110
import com.networknt.schema.output.OutputUnit
1211
import io.github.optimumcode.json.schema.ErrorCollector
@@ -48,7 +47,7 @@ abstract class AbstractComparisonBenchmark {
4847
private val openapiValidator: Validator = Validator(ValidatorSettings().setOutput(FLAG))
4948

5049
// networknt
51-
private lateinit var networkntSchema: com.networknt.schema.JsonSchema
50+
private lateinit var networkntSchema: com.networknt.schema.Schema
5251
private lateinit var networkntDocument: JsonNode
5352

5453
private lateinit var schema: io.github.optimumcode.json.schema.JsonSchema
@@ -63,18 +62,10 @@ abstract class AbstractComparisonBenchmark {
6362
}
6463

6564
private fun setupNetworknt() {
66-
val factory = JsonSchemaFactory.getInstance(V7)
65+
val factory = SchemaRegistry.withDialect(Dialects.getDraft7())
6766
networkntSchema =
6867
Path.of(schemaPath).inputStream().use {
69-
factory.getSchema(
70-
it,
71-
SchemaValidatorsConfig
72-
.builder()
73-
.pathType(PathType.JSON_POINTER)
74-
.errorMessageKeyword("message")
75-
.nullableKeywordEnabled(false)
76-
.build(),
77-
)
68+
factory.getSchema(it, InputFormat.JSON)
7869
}
7970
networkntDocument =
8071
Path.of(objectPath).inputStream().use {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ openapi-jackson = { module = "io.openapiprocessor:io-jackson" }
3232
jackson-bom = { group = "com.fasterxml.jackson", name = "jackson-bom", version.ref = "jackson" }
3333
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind" }
3434
jackson-yaml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml" }
35-
networknt-validator = { group = "com.networknt", name = "json-schema-validator", version = "1.5.8" }
35+
networknt-validator = { group = "com.networknt", name = "json-schema-validator", version = "2.0.0" }
3636
kotlin-codepoints = { group = "de.cketti.unicode", name = "kotlin-codepoints", version = "0.11.0" }
3737
normalize = { group = "com.doist.x", name = "normalize", version = "1.2.0" }
3838
karacteristics = { group = "io.github.optimumcode", name = "karacteristics", version = "0.0.6" }

0 commit comments

Comments
 (0)