don't walk into nested bundles when validating links in bundles

This commit is contained in:
Grahame Grieve 2024-03-08 22:32:13 +11:00
parent a94b41add8
commit a51c3f96ad
1 changed files with 4 additions and 1 deletions

View File

@ -851,7 +851,10 @@ public class BundleValidator extends BaseValidator {
if (ref != null && !ref.startsWith("#") && !hasReference(ref, references))
references.add(new StringWithSource(ref, child, true, isNLLink(start)));
}
findReferences(child, references);
// don't walk into a sub-bundle
if (!"Bundle".equals(child.fhirType())) {
findReferences(child, references);
}
}
}