Skip to content

Commit

Permalink
Fix TerminalConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleValentini1 committed Jul 15, 2024
1 parent b16a838 commit d73a488
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<String> terminalIds;

@Schema(type = SchemaType.ARRAY, maxItems = 10000)
private List<@NotNull @Size(max=20)String> terminalIds;
}

0 comments on commit d73a488

Please sign in to comment.