We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e42361 commit 59a4bb5Copy full SHA for 59a4bb5
1 file changed
src/main/java/javax/validation/constraints/Pattern.java
@@ -18,7 +18,6 @@
18
import java.lang.annotation.Repeatable;
19
import java.lang.annotation.Retention;
20
import java.lang.annotation.Target;
21
-
22
import javax.validation.Constraint;
23
import javax.validation.Payload;
24
import javax.validation.constraints.Pattern.List;
@@ -143,6 +142,13 @@ public int getValue() {
143
142
@Documented
144
@interface List {
145
+ enum Composition {AND, OR}
146
+
147
Pattern[] value();
148
149
+ /**
150
+ * @return how the patterns are composed. AND composition by default
151
+ */
152
+ Composition composition() default Composition.AND;
153
}
154
0 commit comments