mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
#35 fix rückgabe im erfolgsfall
This commit is contained in:
parent
88b3f01276
commit
3184ac5c00
1 changed files with 3 additions and 1 deletions
|
|
@ -136,7 +136,9 @@ public class DefaultCheck implements Check {
|
||||||
result.setSchemaViolations(convertErrors(t.getSchemaValidationResult().getErrors()));
|
result.setSchemaViolations(convertErrors(t.getSchemaValidationResult().getErrors()));
|
||||||
}
|
}
|
||||||
result.setProcessingSuccessful(!t.isStopped() && t.isFinished());
|
result.setProcessingSuccessful(!t.isStopped() && t.isFinished());
|
||||||
result.getProcessingErrors().addAll(t.getReportInput().getProcessingError().getError());
|
if (t.getReportInput().getProcessingError() != null) {
|
||||||
|
result.getProcessingErrors().addAll(t.getReportInput().getProcessingError().getError());
|
||||||
|
}
|
||||||
result.setSchematronResult(t.getReportInput().getValidationResultsSchematron().stream()
|
result.setSchematronResult(t.getReportInput().getValidationResultsSchematron().stream()
|
||||||
.map(e -> e.getResults().getSchematronOutput()).collect(Collectors.toList()));
|
.map(e -> e.getResults().getSchematronOutput()).collect(Collectors.toList()));
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue