File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/java/com/networknt/schema/keyword Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,15 @@ protected boolean hasAdjacentKeywordInEvaluationPath(ExecutionContext executionC
159159
160160 while (evaluationSchemaIterator .hasNext ()) {
161161 Schema schema = evaluationSchemaIterator .next ();
162- for (KeywordValidator validator : schema .getValidators ()) {
163- if (keyword .equals (validator .getKeyword ())) {
164- return true ;
165- }
162+ boolean hasKeyword = schema .getSchemaNode ().has (keyword );
163+ if (hasKeyword ) {
164+ return true ;
166165 }
166+ // for (KeywordValidator validator : schema.getValidators()) {
167+ // if (keyword.equals(validator.getKeyword())) {
168+ // return true;
169+ // }
170+ // }
167171// String newPath = new EvaluationPath(current).toString();
168172// String oldPath = schema.getEvaluationPath().toString();
169173// if (!oldPath.equals(newPath)) {
You can’t perform that action at this time.
0 commit comments