more type characteristic fixes
This commit is contained in:
parent
6169f92cb1
commit
dd7b44d3d8
|
@ -224,7 +224,6 @@ public class StructureDefinitionValidator extends BaseValidator {
|
|||
}
|
||||
}
|
||||
// if we see fixed[x] or pattern[x] applied to a repeating element, we'll give the user a hint
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -236,7 +235,7 @@ public class StructureDefinitionValidator extends BaseValidator {
|
|||
case "decimal" :return addCharacteristicsForType(set, "has-range", "is-continuous", "has-length");
|
||||
case "base64Binary" : return addCharacteristicsForType(set, "has-size");
|
||||
case "instant" : return addCharacteristicsForType(set, "has-range", "is-continuous", "has-length");
|
||||
case "string" : return addCharacteristicsForType(set, "has-length", "do-translations");
|
||||
case "string" : return addCharacteristicsForType(set, "has-length", "do-translations", "can-bind");
|
||||
case "uri" : return addCharacteristicsForType(set, "has-length", "can-bind");
|
||||
case "date" :return addCharacteristicsForType(set, "has-range", "has-length");
|
||||
case "dateTime" : return addCharacteristicsForType(set, "has-range", "is-continuous", "has-length");
|
||||
|
@ -244,7 +243,7 @@ public class StructureDefinitionValidator extends BaseValidator {
|
|||
case "canonical" :return addCharacteristicsForType(set, "has-target", "has-length");
|
||||
case "code" :return addCharacteristicsForType(set, "has-length", "can-bind");
|
||||
case "id" :return addCharacteristicsForType(set, "has-length");
|
||||
case "markdown" :return addCharacteristicsForType(set, "do-translations");
|
||||
case "markdown" :return addCharacteristicsForType(set, "do-translations", "has-length");
|
||||
case "oid" :return addCharacteristicsForType(set, "has-length", "can-bind");
|
||||
case "positiveInt" :return addCharacteristicsForType(set, "has-range", "has-length");
|
||||
case "unsignedInt" :return addCharacteristicsForType(set, "has-range", "has-length");
|
||||
|
@ -299,10 +298,10 @@ public class StructureDefinitionValidator extends BaseValidator {
|
|||
|
||||
case "BackboneElement" :return addCharacteristicsForType(set);
|
||||
default:
|
||||
if (context.getResourceNames().contains(tc))
|
||||
return addCharacteristicsForType(set);
|
||||
else
|
||||
throw new Error("Unhandled data type in addCharacterstics: "+tc);
|
||||
if (!context.getResourceNames().contains(tc)) {
|
||||
System.out.println("Unhandled data type in addCharacteristics: "+tc);
|
||||
}
|
||||
return addCharacteristicsForType(set);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue