diff --git a/src/main/java/org/verapdf/rest/resources/ApiResource.java b/src/main/java/org/verapdf/rest/resources/ApiResource.java index c3adc18..4fb1b25 100644 --- a/src/main/java/org/verapdf/rest/resources/ApiResource.java +++ b/src/main/java/org/verapdf/rest/resources/ApiResource.java @@ -58,7 +58,7 @@ public static ReleaseDetails getReleaseDetails() { */ @GET @Path("/info") - @Operation(summary = "Returns relavent server information, such as JDK version, OS, etc.") + @Operation(summary = "Returns relevant server information, such as JDK version, OS, etc.") @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Server environment details successfully returned.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = Environment.class)), diff --git a/src/main/java/org/verapdf/rest/resources/ProfileResource.java b/src/main/java/org/verapdf/rest/resources/ProfileResource.java index 2437775..bb14b05 100644 --- a/src/main/java/org/verapdf/rest/resources/ProfileResource.java +++ b/src/main/java/org/verapdf/rest/resources/ProfileResource.java @@ -134,9 +134,9 @@ public static ValidationProfile getProfile( }) }) @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public static Set getProfileRules( - @Parameter(description = "The String id of the Validation profile that the rule IDs should be retrieved from, " + @Parameter(description = "The String id of the Validation profile that the rule IDs should be retrieved from " + - "(1b, 1a, 2b, 2a, 2u, 3b, 3a, 3u, 4, 4e, 4f, ua1 or ua2") @PathParam("profileId") String profileId) { + "(1b, 1a, 2b, 2a, 2u, 3b, 3a, 3u, 4, 4e, 4f, ua1 or ua2)") @PathParam("profileId") String profileId) { SortedSet ids = new TreeSet<>(new Profiles.RuleIdComparator()); for (Rule rule : DIRECTORY.getValidationProfileById(profileId).getRules()) { ids.add(rule.getRuleId()); @@ -168,7 +168,7 @@ public static Set getProfileRules( }) }) @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public static Set getRulesForClause(@Parameter(description = "The string id of the validation profile " + - "(1b, 1a, 2b, 2a, 2u, 3b, 3a, 3u, 4, 4e, 4f, ua1 or ua2") @PathParam("profileId") String profileId, + "(1b, 1a, 2b, 2a, 2u, 3b, 3a, 3u, 4, 4e, 4f, ua1 or ua2)") @PathParam("profileId") String profileId, @Parameter(description = "A string identifying the profile clause to return the rules for.") @PathParam("clause") String clause) { SortedSet rules = new TreeSet<>(new Profiles.RuleComparator()); for (Rule rule : DIRECTORY.getValidationProfileById(profileId).getRules()) { diff --git a/src/main/java/org/verapdf/rest/resources/ValidateResource.java b/src/main/java/org/verapdf/rest/resources/ValidateResource.java index ce92737..a7a2d8b 100644 --- a/src/main/java/org/verapdf/rest/resources/ValidateResource.java +++ b/src/main/java/org/verapdf/rest/resources/ValidateResource.java @@ -65,7 +65,7 @@ public class ValidateResource { "must be one of: (auto, 1b, 1a, 2b, 2a, 2u, 3b, 3a, 3u, 4, 4e, 4f, ua1 or ua2). " + "Selecting 'auto' allows the validator to detect and apply the appropriate specification from the PDF metadata."; private static final String PARAM_FILE_SIZE_DESC = "the size of the PDF to be validated in bytes, read from the request header."; - private static final String VALIDATION_OP_DESC = "against the selected PDF Specification/Validaton profile and return a report comprising the valdiation results."; + private static final String VALIDATION_OP_DESC = "against the selected PDF Specification/Validation profile and return a report comprising the validation results."; // java.security.digest name for the SHA-1 algorithm private static final String SHA1_NAME = "SHA-1"; //$NON-NLS-1$ private static final String FILE_SIZE_HEADER = "X-File-Size";