Skip to content

Commit 526ea84

Browse files
authored
Report ReferenceSchema Event only when it match the schema
This PR aims to report the ReferecenceSchema event only when the schema is matching against the event.
1 parent 5722c0f commit 526ea84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/everit/json/schema/ValidatingVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void visitReferenceSchema(ReferenceSchema referenceSchema) {
133133
if (failure != null) {
134134
failureReporter.failure(failure);
135135
}
136-
if (validationListener != null) {
136+
else if (validationListener != null) {
137137
validationListener.schemaReferenced(new SchemaReferencedEvent(referenceSchema, subject, referredSchema));
138138
}
139139
}

0 commit comments

Comments
 (0)