@@ -42,9 +42,6 @@ Validator::choice(['red', 'green', 'blue'], multiple: true, min: 2, max: 3)->val
4242> [ !NOTE]
4343> An ` UnexpectedValueException ` will be thrown when ` multiple ` is ` true ` and the input value is not an ` array ` .
4444
45- > [ !NOTE]
46- > An ` UnexpectedValueException ` will be thrown when the ` min ` value is greater than or equal to the ` max ` value.
47-
4845## Options
4946
5047### ` constraints `
@@ -78,7 +75,7 @@ For example, if `max` is 2, the input array must have at most 2 values.
7875
7976### ` message `
8077
81- type: ` ?string ` default: ` The {{ name }} value is not a valid choice, {{ value }} given . Accepted values are: {{ constraints }}. `
78+ type: ` ?string ` default: ` The {{ name }} value is not a valid choice. Accepted values are: {{ constraints }}. `
8279
8380Message that will be shown if input value is not a valid choice.
8481
@@ -92,7 +89,7 @@ The following parameters are available:
9289
9390### ` multipleMessage `
9491
95- type: ` ?string ` default: ` The {{ name }} value has one or more invalid choices, {{ value }} given . Accepted values are: {{ constraints }}. `
92+ type: ` ?string ` default: ` The {{ name }} value has one or more invalid choices. Accepted values are: {{ constraints }}. `
9693
9794Message that will be shown when ` multiple ` is ` true ` and at least one of the input array values is not a valid choice.
9895
@@ -106,7 +103,7 @@ The following parameters are available:
106103
107104### ` minMessage `
108105
109- type: ` ?string ` default: ` The {{ name }} value must have at least {{ min }} choices, {{ numElements }} choices given . `
106+ type: ` ?string ` default: ` The {{ name }} value must have at least {{ min }} choice(s) . `
110107
111108Message that will be shown when ` multiple ` is ` true ` and input array has fewer values than the defined in ` min ` .
112109
@@ -123,7 +120,7 @@ The following parameters are available:
123120
124121### ` maxMessage `
125122
126- type: ` ?string ` default: ` The {{ name }} value must have at most {{ max }} choices, {{ numElements }} choices given . `
123+ type: ` ?string ` default: ` The {{ name }} value must have at most {{ max }} choice(s) . `
127124
128125Message that will be shown when ` multiple ` is ` true ` and input array has more values than the defined in ` max ` .
129126
0 commit comments