Do not flag internal references as suspicious

This commit is contained in:
Grahame Grieve 2021-05-05 10:17:08 +10:00
parent c6f392b7e0
commit 6da83fa41e
2 changed files with 3 additions and 1 deletions

View File

@ -1,2 +1,4 @@
* Update core R5 code to v4.6.0 (breaking changes to questionnaire, concept map, and other resources that are less important to core)
* Fix compartment definitions of ListResource.source and subject for R3 and R4
* Snapshot generator: fix problem checking types on logical models
* Do not flag internal references as suspicious

View File

@ -2757,7 +2757,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
}
private boolean isSuspiciousReference(String url) {
if (!assumeValidRestReferences || url == null || Utilities.isAbsoluteUrl(url)) {
if (!assumeValidRestReferences || url == null || Utilities.isAbsoluteUrl(url) || url.startsWith("#")) {
return false;
}
String[] parts = url.split("\\/");