Skip to content

Commit

Permalink
Bump com.networknt:json-schema-validator from 1.0.82 to 1.4.0
Browse files Browse the repository at this point in the history
Bumps [com.networknt:json-schema-validator](https://github.com/networknt/json-schema-validator) from 1.0.82 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.82...1.4.0)

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

* update code to use `jsonMapper` instead of `objectMapper`.

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and jmesnil committed Mar 22, 2024
1 parent 282c3d5 commit 5a9f8e8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/wildfly/channel/Blocklist.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class Blocklist {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(YAML_FACTORY)
.configure(FAIL_ON_UNKNOWN_PROPERTIES, false)
.configure(ORDER_MAP_ENTRIES_BY_KEYS, true);
private static final JsonSchemaFactory SCHEMA_FACTORY = JsonSchemaFactory.builder(JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V201909)).objectMapper(OBJECT_MAPPER).build();
private static final JsonSchemaFactory SCHEMA_FACTORY = JsonSchemaFactory.builder(JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V201909)).jsonMapper(OBJECT_MAPPER).build();

private static final Map<String, JsonSchema> SCHEMAS = new HashMap<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ChannelManifestMapper {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(YAML_FACTORY)
.configure(FAIL_ON_UNKNOWN_PROPERTIES, false)
.configure(ORDER_MAP_ENTRIES_BY_KEYS, true);
private static final JsonSchemaFactory SCHEMA_FACTORY = JsonSchemaFactory.builder(JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V201909)).objectMapper(OBJECT_MAPPER).build();
private static final JsonSchemaFactory SCHEMA_FACTORY = JsonSchemaFactory.builder(JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V201909)).jsonMapper(OBJECT_MAPPER).build();
private static final Map<String, JsonSchema> SCHEMAS = new HashMap<>();

static {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/wildfly/channel/ChannelMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class ChannelMapper {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(YAML_FACTORY)
.configure(FAIL_ON_UNKNOWN_PROPERTIES, false)
.configure(ORDER_MAP_ENTRIES_BY_KEYS, true);
private static final JsonSchemaFactory SCHEMA_FACTORY = JsonSchemaFactory.builder(JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V201909)).objectMapper(OBJECT_MAPPER).build();
private static final JsonSchemaFactory SCHEMA_FACTORY = JsonSchemaFactory.builder(JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V201909)).jsonMapper(OBJECT_MAPPER).build();
private static final Map<String, JsonSchema> SCHEMAS = new HashMap<>();

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public void testChannelWithInvalidBlacklist() throws Exception {
fail("InvalidChannelException should have been thrown.");
} catch (InvalidChannelMetadataException e) {
assertEquals(1, e.getValidationMessages().size());
assertTrue(e.getValidationMessages().get(0).contains("versions: is missing"), e.getValidationMessages().get(0));
assertTrue(e.getValidationMessages().get(0).contains("required property 'versions' not found"), e.getValidationMessages().get(0));
}
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<maven.compiler.target>11</maven.compiler.target>
<version.com.fasterxml.jackson>2.17.0</version.com.fasterxml.jackson>
<version.com.fasterxml.jackson.databind>2.17.0</version.com.fasterxml.jackson.databind>
<version.com.networknt.json-schema-validator>1.0.82</version.com.networknt.json-schema-validator>
<version.com.networknt.json-schema-validator>1.4.0</version.com.networknt.json-schema-validator>
<version.junit5>5.10.2</version.junit5>
<version.org.jboss.logging>3.5.3.Final</version.org.jboss.logging>
<version.org.apache.commons.commons-lang3>3.14.0</version.org.apache.commons.commons-lang3>
Expand Down

0 comments on commit 5a9f8e8

Please sign in to comment.