Skip to content

Commit cbac5b1

Browse files
harishvashisthaVashiststevehu
authored
removed unnecessary check (#554)
Co-authored-by: Vashist <[email protected]> Co-authored-by: Steve Hu <[email protected]>
1 parent a2ca992 commit cbac5b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<modelVersion>4.0.0</modelVersion>
2121
<groupId>com.networknt</groupId>
2222
<artifactId>json-schema-validator</artifactId>
23-
<version>1.0.68-SNAPSHOT2</version>
23+
<version>1.0.68-SNAPSHOT1</version>
2424
<packaging>bundle</packaging>
2525
<description>A json schema validator that supports draft v4, v6, v7 and v2019-09</description>
2626
<url>https://github.com/networknt/json-schema-validator</url>

src/main/java/com/networknt/schema/utils/JsonNodeUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static boolean equalsToSchemaType(JsonNode node, JsonType schemaType, Jso
8585

8686
ValidatorState state = (ValidatorState) CollectorContext.getInstance().get(ValidatorState.VALIDATOR_STATE_KEY);
8787
if(JsonType.NULL.equals(nodeType)) {
88-
if(state.isComplexValidator() && parentSchema != null) {
88+
if(parentSchema != null) {
8989
if( parentSchema.getParentSchema() != null && JsonNodeUtil.isNodeNullable(parentSchema.getParentSchema().getSchemaNode(), config) || JsonNodeUtil.isNodeNullable(parentSchema.getSchemaNode()) ) {
9090
return true;
9191
}

0 commit comments

Comments
 (0)