Skip to content

Commit

Permalink
Fix Arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleValentini1 committed Jul 15, 2024
1 parent 0ec2061 commit b16a838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public class TerminalConfigs {
@NotNull
@Schema(minimum = "1", maximum = "10000")
private Long templateVersion;
@Schema(maxItems = 2147483647)
@Schema(type = SchemaType.ARRAY, maxItems = 100)
private List<String> terminalIds;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.eclipse.microprofile.openapi.annotations.enums.SchemaType;
import org.eclipse.microprofile.openapi.annotations.media.Schema;

import java.util.List;
Expand All @@ -19,6 +20,6 @@ public class PageInfo<T> {
private Integer itemsFound;
@Schema(minimum = "1", maximum = "10000")
private Integer totalPages;
@Schema(maxLength = 1000000)
@Schema(type = SchemaType.ARRAY, maxItems = 10000)
private List<T> results;
}

0 comments on commit b16a838

Please sign in to comment.