From 10d89fdb3c9ee513f5553ad6fea9db4e139d18d0 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Sat, 2 Mar 2024 22:10:41 +0100 Subject: [PATCH] fix: allow order array to be empty --- .../data/jpa/datatables/mapping/DataTablesInput.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/jpa/datatables/mapping/DataTablesInput.java b/src/main/java/org/springframework/data/jpa/datatables/mapping/DataTablesInput.java index cbe1878..8aed9d3 100644 --- a/src/main/java/org/springframework/data/jpa/datatables/mapping/DataTablesInput.java +++ b/src/main/java/org/springframework/data/jpa/datatables/mapping/DataTablesInput.java @@ -9,6 +9,11 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; +/** + * The format of the payload sent by the client. + * + * @see datatables.net reference + */ @Data public class DataTablesInput { /** @@ -55,7 +60,6 @@ public class DataTablesInput { /** * Order parameter */ - @NotEmpty private List order = new ArrayList<>(); /**