File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
AtLeastOneOf
2
2
============
3
3
4
- This constraint enables you to create a set of constraints,
5
- allowing to interrupt the validation once the first constraint is satisfied.
4
+ This constraint checks that the value satisfies at least one of the given
5
+ constraints. The validation stops as soon as one constraint is satisfied.
6
6
7
7
.. versionadded :: 5.1
8
8
@@ -25,9 +25,10 @@ Basic Usage
25
25
26
26
The following constraints ensure that:
27
27
28
- * the ``password `` of a ``Student `` either contains ``# `` or is at least ``10 `` characters long
29
- * the ``grades `` of a ``Student `` is an array which contains at least ``3 `` elements or
30
- that each element is greater than or equal to ``5 ``
28
+ * the ``password `` of a ``Student `` either contains ``# `` or is at least ``10 ``
29
+ characters long;
30
+ * the ``grades `` of a ``Student `` is an array which contains at least ``3 ``
31
+ elements or that each element is greater than or equal to ``5 ``.
31
32
32
33
.. configuration-block ::
33
34
You can’t perform that action at this time.
0 commit comments