Skip to content

Commit

Permalink
chore(deps): Bump com.networknt:json-schema-validator from 1.0.86 to …
Browse files Browse the repository at this point in the history
…1.4.0 (2934)

chore(deps): Bump com.networknt:json-schema-validator

Bumps [com.networknt:json-schema-validator](https://github.com/networknt/json-schema-validator) from 1.0.86 to 1.4.0.
- [Release notes](https://github.com/networknt/json-schema-validator/releases)
- [Changelog](https://github.com/networknt/json-schema-validator/blob/master/CHANGELOG.md)
- [Commits](networknt/json-schema-validator@1.0.86...1.4.0)

---
updated-dependencies:
- dependency-name: com.networknt:json-schema-validator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
---
fix (jkube-kit/common) : Update methods renamed in json-schema-validator upgrade

In `com.networknt:json-schema-validator:1.4.0`, these methods have been
renamed:
-  `getUri` -> `getIri`
- `defaultMetaSchemaURI` -> `defaultMetaSchemaIri`
These methods have been marked as deprecated, I've replaced it with
these equivalent methods:
- `addKeywords` -> `keywords`
- `addMetaSchema` -> `metaSchema`

Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
dependabot[bot] authored Apr 25, 2024
1 parent e1f1382 commit a54a40c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ private String getErrorMessage(File resource, Set<ConstraintViolationImpl> viola

private JsonSchema getJsonSchema(URL schemaUrl, String kind) throws IOException {
final JsonMetaSchema v7 = JsonMetaSchema.getV7();
final String defaultUri = v7.getUri();
final String defaultUri = v7.getIri();
JsonObject jsonSchema = fixUrlIfUnversioned(getSchemaJson(schemaUrl), defaultUri);
checkIfKindPropertyExists(kind);
getResourceProperties(kind, jsonSchema);
final JsonMetaSchema metaSchema = JsonMetaSchema.builder(v7.getUri(), v7)
.addKeywords(createNonValidationKeywordList())
final JsonMetaSchema metaSchema = JsonMetaSchema.builder(v7.getIri(), v7)
.keywords(createNonValidationKeywordList())
.build();
return new JsonSchemaFactory.Builder()
.defaultMetaSchemaURI(defaultUri).addMetaSchema(metaSchema).build()
.defaultMetaSchemaIri(defaultUri).metaSchema(metaSchema).build()
.getSchema(jsonSchema.toString());
}

Expand Down
2 changes: 1 addition & 1 deletion jkube-kit/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<version.maven-core>3.8.1</version.maven-core>
<version.maven-filtering>3.3.1</version.maven-filtering>
<version.maven-plugin-annotations>3.9.0</version.maven-plugin-annotations>
<version.networknt.validator>1.0.86</version.networknt.validator>
<version.networknt.validator>1.4.0</version.networknt.validator>
<version.openshift-client>${version.kubernetes-client}</version.openshift-client>
<version.plexus-classworlds>2.7.0</version.plexus-classworlds>
<version.plexus-build-api>0.0.7</version.plexus-build-api>
Expand Down

0 comments on commit a54a40c

Please sign in to comment.