From 73b5578d494dd80df6da62be2bf0bc6bca8e6a00 Mon Sep 17 00:00:00 2001 From: MaximPlusov Date: Thu, 7 Apr 2022 14:40:31 +0300 Subject: [PATCH] Add parametr showErrorMessages to createValidator --- .github/workflows/docker-images-tagged.yml | 2 +- .github/workflows/docker-images.yml | 2 +- .../org/verapdf/webapp/worker/listener/VeraPdfProcessor.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-images-tagged.yml b/.github/workflows/docker-images-tagged.yml index b94cb6b5..8b4fb449 100644 --- a/.github/workflows/docker-images-tagged.yml +++ b/.github/workflows/docker-images-tagged.yml @@ -25,7 +25,7 @@ jobs: with: java-version: 1.11 - - name: Update gut submodule for veraPDF-validation-profiles + - name: Update git submodule for veraPDF-validation-profiles run: git submodule update --init --remote --recursive - name: Build with Maven diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 94b1782f..218fea77 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -47,7 +47,7 @@ jobs: ref: 'integration' }) - - name: Update gut submodule for veraPDF-validation-profiles + - name: Update git submodule for veraPDF-validation-profiles run: git submodule update --init --remote --recursive - name: Build with Maven diff --git a/worker/src/main/java/org/verapdf/webapp/worker/listener/VeraPdfProcessor.java b/worker/src/main/java/org/verapdf/webapp/worker/listener/VeraPdfProcessor.java index 12fb086f..75399176 100644 --- a/worker/src/main/java/org/verapdf/webapp/worker/listener/VeraPdfProcessor.java +++ b/worker/src/main/java/org/verapdf/webapp/worker/listener/VeraPdfProcessor.java @@ -60,12 +60,12 @@ public ValidationReport validate(File source, Profile profile) throws VeraPDFPro "Missing validation profile for " + profile.name()); } try (PDFAParser parser = Foundries.defaultInstance().createParser(source, validationProfile.getPDFAFlavour()); - PDFAValidator validator = ValidatorFactory.createValidator(validationProfile, false)) { + PDFAValidator validator = ValidatorFactory.createValidator(validationProfile, 100, false, true)) { validationResult = validator.validate(parser); } } ValidationDetails details - = Reports.fromValues(validationResult, false, 100); + = Reports.fromValues(validationResult, false); return Reports.createValidationReport(details, validationResult.getProfileDetails().getName(), getStatement(validationResult.isCompliant()),