Skip to content

Commit

Permalink
CDR-1421 relay checkForChildrenNotInTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
HolgerReiseVSys committed Oct 24, 2024
1 parent 71c24e0 commit f73eb27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.openehr.schemas.v1.OPERATIONALTEMPLATE;

/**
* Validator that checks a composition against constraints define in an Operational Template or a
* Validator that checks a composition against constraints defined in an Operational Template or a
* Web Template.
* This class is NOT thread-safe!
*/
Expand Down Expand Up @@ -120,7 +120,7 @@ public List<ConstraintViolation> validate(Composition composition, WebTemplate t
List<RMObjectValidationMessage> messages = getRmObjectValidator().validate(composition);
if (messages.isEmpty()) {
List<ConstraintViolation> result = new ArrayList<>();
new ValidationWalker(externalTerminologyValidation, true)
new ValidationWalker(externalTerminologyValidation, checkForChildrenNotInTemplate)
.walk(composition, result, template.getTree(), template.getTemplateId());
return result;
} else {
Expand Down

0 comments on commit f73eb27

Please sign in to comment.