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

Commit51a7463

Browse files
author
Florent Mata
committed
Update Expression constraint with "pass" option
1 parent627a3c2 commit51a7463

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎reference/constraints/Expression.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ expression that must return true in order for validation to pass. To learn
143143
more about the expression language syntax, see
144144
:doc:`/components/expression_language/syntax`.
145145

146+
..note::
147+
148+
Alternatively, you can set the `pass`_ option to ``true`` in order to
149+
assert that the expression must return true for validation to fail.
150+
146151
..sidebar::Mapping the Error to a Specific Field
147152

148153
You can also attach the constraint to a specific property and still validate

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp