mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
(wip) Rückgabe von Informationen für den Fehlerfall
This commit is contained in:
parent
dc3f62670c
commit
88b3f01276
3 changed files with 34 additions and 6 deletions
|
|
@ -135,6 +135,8 @@ public class DefaultCheck implements Check {
|
|||
if (t.getSchemaValidationResult() != null) {
|
||||
result.setSchemaViolations(convertErrors(t.getSchemaValidationResult().getErrors()));
|
||||
}
|
||||
result.setProcessingSuccessful(!t.isStopped() && t.isFinished());
|
||||
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