Skip to content

Commit

Permalink
Resolve references before trying to validate them (#1471)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Herrera <[email protected]>
  • Loading branch information
Pablete1234 authored Jan 2, 2025
1 parent 003a76e commit efffb67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ private PendingValidation(

public void validate() throws InvalidXMLException {
if (definition != null) validation.validate(definition, node);
if (reference != null) validation.validate(reference.get(), node);
if (reference != null) {
if (!reference.isResolved()) reference.resolve();
validation.validate(reference.get(), node);
}
}
}
}

0 comments on commit efffb67

Please sign in to comment.