diff --git a/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/TerminalConfigs.java b/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/TerminalConfigs.java index eb9ef0e4..ffd71cdc 100644 --- a/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/TerminalConfigs.java +++ b/src/main/java/it/gov/pagopa/atmlayer/service/model/dto/TerminalConfigs.java @@ -1,6 +1,7 @@ package it.gov.pagopa.atmlayer.service.model.dto; import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @@ -16,9 +17,11 @@ public class TerminalConfigs { @NotNull private UUID templateId; + @NotNull @Schema(minimum = "1", maximum = "10000") private Long templateVersion; - @Schema(type = SchemaType.ARRAY, maxItems = 100) - private List terminalIds; + + @Schema(type = SchemaType.ARRAY, maxItems = 10000) + private List<@NotNull @Size(max=20)String> terminalIds; }