From 6f5f6a81557b5ec3dbd5062e95f1d4b9e4f33754 Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Sun, 11 May 2025 07:29:02 +0200 Subject: [PATCH] Update AddPasswordRequest.java --- .../SPDF/model/api/security/AddPasswordRequest.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/model/api/security/AddPasswordRequest.java b/src/main/java/stirling/software/SPDF/model/api/security/AddPasswordRequest.java index 982a31244..6769a20cb 100644 --- a/src/main/java/stirling/software/SPDF/model/api/security/AddPasswordRequest.java +++ b/src/main/java/stirling/software/SPDF/model/api/security/AddPasswordRequest.java @@ -13,20 +13,23 @@ public class AddPasswordRequest extends PDFFile { @Schema( description = - "The owner password to be added to the PDF file (Restricts what can be done with the document once it is opened)", - defaultValue = "") + "The owner password to be added to the PDF file (Restricts what can be done" + + " with the document once it is opened)", + format = "password") private String ownerPassword; @Schema( description = - "The password to be added to the PDF file (Restricts the opening of the document itself.)", - defaultValue = "") + "The password to be added to the PDF file (Restricts the opening of the" + + " document itself.)", + format = "password") private String password; @Schema( description = "The length of the encryption key", allowableValues = {"40", "128", "256"}, - defaultValue = "256") + defaultValue = "256", + requiredMode = Schema.RequiredMode.REQUIRED) private int keyLength = 256; @Schema(description = "Whether document assembly is prevented", example = "false")