mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +00:00
Fix output message when there's nothing to validate
This commit is contained in:
parent
1532a038c9
commit
d432cff826
@ -81,8 +81,12 @@ public class ValidationService {
|
|||||||
if (r instanceof Bundle)
|
if (r instanceof Bundle)
|
||||||
for (Bundle.BundleEntryComponent e : ((Bundle) r).getEntry())
|
for (Bundle.BundleEntryComponent e : ((Bundle) r).getEntry())
|
||||||
ec = ec + displayOperationOutcome((OperationOutcome) e.getResource(), ((Bundle) r).getEntry().size() > 1) + ec;
|
ec = ec + displayOperationOutcome((OperationOutcome) e.getResource(), ((Bundle) r).getEntry().size() > 1) + ec;
|
||||||
else
|
else if (r == null) {
|
||||||
|
ec = ec + 1;
|
||||||
|
System.out.println("No output from validation - nothing to validate");
|
||||||
|
} else {
|
||||||
ec = displayOperationOutcome((OperationOutcome) r, false);
|
ec = displayOperationOutcome((OperationOutcome) r, false);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
IParser x;
|
IParser x;
|
||||||
if (cliContext.getOutput() != null && cliContext.getOutput().endsWith(".json")) {
|
if (cliContext.getOutput() != null && cliContext.getOutput().endsWith(".json")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user