mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-22 05:04:51 +00:00
Fix using wrong resource type when validating constraints in data type definitions (R6)
This commit is contained in:
parent
78669add28
commit
ff81c16aeb
@ -574,7 +574,7 @@ public class StructureDefinitionValidator extends BaseValidator {
|
||||
fpe.checkOnTypes(vc, rootPath, types, fpe.parse(exp), warnings);
|
||||
} else {
|
||||
StructureDefinition sd = context.fetchTypeDefinition(rootPath);
|
||||
if (sd != null) {
|
||||
if (sd != null && sd.getKind() == StructureDefinitionKind.RESOURCE) {
|
||||
fpe.checkOnTypes(vc, rootPath, types, fpe.parse(exp), warnings);
|
||||
} else {
|
||||
fpe.checkOnTypes(vc, "DomainResource", types, fpe.parse(exp), warnings);
|
||||
|
Loading…
x
Reference in New Issue
Block a user