Skip to content

Commit cf049ed

Browse files
committed
[#2432] Tweaking language around Required constraint
1 parent 2928045 commit cf049ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reference/constraints/Collection.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,11 @@ field is optional but must be a valid email if supplied, you can do the followin
224224
}
225225
}
226226
227-
Even without ``allowMissingFields`` set to true, you can now omit the ``alternate_email`` property
228-
completely from the ``profileData`` array, since it is ``Optional``. However, if the the ``personal_email``
229-
field does not exist in the array there will be a constraint violation that the field is missing,
230-
since it is ``Required``.
227+
Even without ``allowMissingFields`` set to true, you can now omit the ``alternate_email``
228+
property completely from the ``profileData`` array, since it is ``Optional``.
229+
However, if the the ``personal_email`` field does not exist in the array,
230+
the ``NotBlank`` constraint will still be applied (since it is wrapped in
231+
``Required``) and you will receive a constraint violation.
231232

232233
Options
233234
-------

0 commit comments

Comments
 (0)