From 500aacf26e60383da2249de6bc5cbd86c4a82e2e Mon Sep 17 00:00:00 2001 From: LuciaM1 Date: Mon, 30 Sep 2024 14:59:27 +0200 Subject: [PATCH] adding input length constraints --- .../atmlayer/service/model/dto/ResourceCreationDto.java | 2 ++ .../service/model/dto/ResourceMultipleCreationDtoJSON.java | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/ResourceCreationDto.java b/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/ResourceCreationDto.java index 8e55a73e..8323f520 100644 --- a/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/ResourceCreationDto.java +++ b/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/ResourceCreationDto.java @@ -41,9 +41,11 @@ public class ResourceCreationDto { @DefaultValue("") @Schema(description = "Description of the path parameter: example/path", pattern = "(^$)|(^(?!/)[a-zA-Z0-9/]+(? filenameList; @NonNull private NoDeployableResourceType resourceType; - + @Length(max = 150) private String path; - + @Length(max = 255) private String description; }