Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e085e75

Browse files
committed
document "choices" wildcard in Choice validation constraint
1 parent 50aa694 commit e085e75

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

reference/constraints/Choice.rst

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,13 @@ too few choices per the `min`_ option.
375375

376376
You can use the following parameters in this message:
377377

378-
+------------------+------------------------------------------------+
379-
| Parameter | Description |
380-
+==================+================================================+
381-
| ``{{ limit }}`` | The lower limit of choices |
382-
+------------------+------------------------------------------------+
378+
+--------------------+-------------------------------------------------------+
379+
| Parameter | Description |
380+
+====================+=======================================================+
381+
| ``{{ value }}`` | The current (invalid) value |
382+
+--------------------+-------------------------------------------------------+
383+
| ``{{ choices }}`` | String list of available choices, separated by comas |
384+
+--------------------+-------------------------------------------------------+
383385

384386
maxMessage
385387
~~~~~~~~~~
@@ -391,11 +393,13 @@ too many options per the `max`_ option.
391393

392394
You can use the following parameters in this message:
393395

394-
+------------------+------------------------------------------------+
395-
| Parameter | Description |
396-
+==================+================================================+
397-
| ``{{ limit }}`` | The upper limit of choices |
398-
+------------------+------------------------------------------------+
396+
+--------------------+-------------------------------------------------------+
397+
| Parameter | Description |
398+
+====================+=======================================================+
399+
| ``{{ value }}`` | The current (invalid) value |
400+
+--------------------+-------------------------------------------------------+
401+
| ``{{ choices }}`` | String list of available choices, separated by comas |
402+
+--------------------+-------------------------------------------------------+
399403

400404
strict
401405
~~~~~~

0 commit comments

Comments
 (0)