mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-06 03:19:15 +00:00
Fix issue where primitive elements with required bindings must have a value, but this wasn't be checked
This commit is contained in:
parent
7d2df18fb9
commit
7b60c1b85d
@ -1907,6 +1907,9 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
||||
rule(errors, IssueType.INVALID, e.line(), e.col(), path, e.hasChildren(), I18nConstants.TYPE_SPECIFIC_CHECKS_DT_PRIMITIVE_NOTEMPTY);
|
||||
else if (StringUtils.isWhitespace(e.primitiveValue()))
|
||||
warning(errors, IssueType.INVALID, e.line(), e.col(), path, e.hasChildren(), I18nConstants.TYPE_SPECIFIC_CHECKS_DT_PRIMITIVE_WS);
|
||||
if (context.hasBinding()) {
|
||||
rule(errors, IssueType.CODEINVALID, e.line(), e.col(), path, context.getBinding().getStrength() != BindingStrength.REQUIRED, I18nConstants.Terminology_TX_Code_ValueSet_MISSING);
|
||||
}
|
||||
return;
|
||||
}
|
||||
String regex = context.getExtensionString(ToolingExtensions.EXT_REGEX);
|
||||
|
Loading…
x
Reference in New Issue
Block a user