mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +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.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()
|
||||
.map(e -> e.getResults().getSchematronOutput()).collect(Collectors.toList()));
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue