don't walk into nested bundles when validating links in bundles
This commit is contained in:
parent
a94b41add8
commit
a51c3f96ad
|
@ -851,9 +851,12 @@ public class BundleValidator extends BaseValidator {
|
||||||
if (ref != null && !ref.startsWith("#") && !hasReference(ref, references))
|
if (ref != null && !ref.startsWith("#") && !hasReference(ref, references))
|
||||||
references.add(new StringWithSource(ref, child, true, isNLLink(start)));
|
references.add(new StringWithSource(ref, child, true, isNLLink(start)));
|
||||||
}
|
}
|
||||||
|
// don't walk into a sub-bundle
|
||||||
|
if (!"Bundle".equals(child.fhirType())) {
|
||||||
findReferences(child, references);
|
findReferences(child, references);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private boolean isNLLink(Element parent) {
|
private boolean isNLLink(Element parent) {
|
||||||
|
|
Loading…
Reference in New Issue