Skip to content

Commit 93b8a45

Browse files
committed
Mismatch test
1 parent 26763bd commit 93b8a45

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/com/networknt/schema/Schema.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -705,14 +705,14 @@ private List<KeywordValidator> read(JsonNode schemaNode) {
705705

706706
@Override
707707
public void validate(ExecutionContext executionContext, JsonNode jsonNode, JsonNode rootNode, NodePath instanceLocation) {
708-
// String newEvaluationPath = new EvaluationPath(executionContext.getEvaluationPath()).toString();
709-
// String oldEvaluationPath = getEvaluationPath().toString();
710-
// if(!oldEvaluationPath.equals(newEvaluationPath)) {
711-
// System.out.println("-----------------");
712-
// System.out.println("MISMATCH OLD: "+oldEvaluationPath);
713-
// System.out.println("MISMATCH NEW: "+newEvaluationPath);
714-
// System.out.println("-----------------");
715-
// }
708+
String newEvaluationPath = new EvaluationPath(executionContext.getEvaluationPath()).toString();
709+
String oldEvaluationPath = getEvaluationPath().toString();
710+
if(!oldEvaluationPath.equals(newEvaluationPath)) {
711+
System.out.println("-----------------");
712+
System.out.println("MISMATCH OLD: "+oldEvaluationPath);
713+
System.out.println("MISMATCH NEW: "+newEvaluationPath);
714+
System.out.println("-----------------");
715+
}
716716
executionContext.evaluationSchema.addLast(this);
717717
try {
718718
int currentErrors = executionContext.getErrors().size();

0 commit comments

Comments
 (0)