Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf049ed

Browse files
committed
[#2432] Tweaking language around Required constraint
1 parent2928045 commitcf049ed

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)

[8]ページ先頭

©2009-2025 Movatter.jp