commenting out code causing IG publishing errors for extension.url (#465)
This commit is contained in:
parent
eb2ae84e4b
commit
1712d66c08
|
@ -0,0 +1 @@
|
||||||
|
* URI type issue temporary fix for github issue #240 (QA Error related Extension.url)
|
|
@ -149,18 +149,26 @@ public class StructureDefinitionValidator extends BaseValidator {
|
||||||
// in a snapshot, we validate that fixedValue, pattern, and defaultValue, if present, are all of the right type
|
// in a snapshot, we validate that fixedValue, pattern, and defaultValue, if present, are all of the right type
|
||||||
if (snapshot && element.getIdBase().contains(".")) {
|
if (snapshot && element.getIdBase().contains(".")) {
|
||||||
if (rule(errors, IssueType.EXCEPTION, stack.getLiteralPath(), !typeCodes.isEmpty() || element.hasChild("contentReference"), I18nConstants.SD_NO_TYPES_OR_CONTENTREF, element.getIdBase())) {
|
if (rule(errors, IssueType.EXCEPTION, stack.getLiteralPath(), !typeCodes.isEmpty() || element.hasChild("contentReference"), I18nConstants.SD_NO_TYPES_OR_CONTENTREF, element.getIdBase())) {
|
||||||
Element v = element.getNamedChild("defaultValue");
|
/*
|
||||||
if (v != null) {
|
TODO Grahame, this is breaking the ig publisher for implementers
|
||||||
rule(errors, IssueType.EXCEPTION, stack.push(v, -1, null, null).getLiteralPath(), typeCodes.contains(v.fhirType()), I18nConstants.SD_VALUE_TYPE_IILEGAL, element.getIdBase(), "defaultValue", v.fhirType(), typeCodes);
|
https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/The.20element.20Extension.2Eurl.20has.20a.20fixed.20of.20type.20uri
|
||||||
}
|
https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/BUG.3A.20The.20element.20Extension.2Eurl.20has.20a.20fixed.20of.20type.20uri
|
||||||
v = element.getNamedChild("fixed");
|
https://github.com/HL7/fhir-ig-publisher/issues/240
|
||||||
if (v != null) {
|
This was brought up to Wayne, so I'm commenting it out for now. When you get back we can discuss how to
|
||||||
rule(errors, IssueType.EXCEPTION, stack.push(v, -1, null, null).getLiteralPath(), typeCodes.contains(v.fhirType()), I18nConstants.SD_VALUE_TYPE_IILEGAL, element.getIdBase(), "fixed", v.fhirType(), typeCodes);
|
put the changes back in.
|
||||||
}
|
*/
|
||||||
v = element.getNamedChild("pattern");
|
// Element v = element.getNamedChild("defaultValue");
|
||||||
if (v != null) {
|
// if (v != null) {
|
||||||
rule(errors, IssueType.EXCEPTION, stack.push(v, -1, null, null).getLiteralPath(), typeCodes.contains(v.fhirType()), I18nConstants.SD_VALUE_TYPE_IILEGAL, element.getIdBase(), "pattern", v.fhirType(), typeCodes);
|
// rule(errors, IssueType.EXCEPTION, stack.push(v, -1, null, null).getLiteralPath(), typeCodes.contains(v.fhirType()), I18nConstants.SD_VALUE_TYPE_IILEGAL, element.getIdBase(), "defaultValue", v.fhirType(), typeCodes);
|
||||||
}
|
// }
|
||||||
|
// v = element.getNamedChild("fixed");
|
||||||
|
// if (v != null) {
|
||||||
|
// rule(errors, IssueType.EXCEPTION, stack.push(v, -1, null, null).getLiteralPath(), typeCodes.contains(v.fhirType()), I18nConstants.SD_VALUE_TYPE_IILEGAL, element.getIdBase(), "fixed", v.fhirType(), typeCodes);
|
||||||
|
// }
|
||||||
|
// v = element.getNamedChild("pattern");
|
||||||
|
// if (v != null) {
|
||||||
|
// rule(errors, IssueType.EXCEPTION, stack.push(v, -1, null, null).getLiteralPath(), typeCodes.contains(v.fhirType()), I18nConstants.SD_VALUE_TYPE_IILEGAL, element.getIdBase(), "pattern", v.fhirType(), typeCodes);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue