Skip to content

Commit

Permalink
Allow walking of schema for items keyword when non-array node is prov…
Browse files Browse the repository at this point in the history
…ided (#786)
  • Loading branch information
anjnerajat authored May 25, 2023
1 parent f09740a commit de1cb89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/com/networknt/schema/ItemsValidator202012.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public Set<ValidationMessage> walk(JsonNode node, JsonNode rootNode, String at,
// Walk the schema.
walkSchema(this.schema, n, rootNode, atPath(at, i), shouldValidateSchema, validationMessages);
}
} else {
walkSchema(this.schema, node, rootNode, at, shouldValidateSchema, validationMessages);
}

return validationMessages;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class UnevaluatedPropertiesValidator extends BaseJsonValidator {
private static final Logger logger = LoggerFactory.getLogger(UnevaluatedPropertiesValidator.class);

private static final String UNEVALUATED_PROPERTIES = "com.networknt.schema.UnevaluatedPropertiesValidator.UnevaluatedProperties";
public static final String UNEVALUATED_PROPERTIES = "com.networknt.schema.UnevaluatedPropertiesValidator.UnevaluatedProperties";

private final JsonSchema schema;

Expand Down

0 comments on commit de1cb89

Please sign in to comment.