Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 2105e93

Browse files
committed
chore: improved name parameter description
1 parent de69a8d commit 2105e93

8 files changed

+43
-43
lines changed

docs/03x-rules-all.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ The following parameters are available:
5454
| Parameter | Description |
5555
|-----------------|-----------------------------------------------|
5656
| `{{ value }}` | The current invalid value |
57-
| `{{ name }}` | Name of the value being validated |
57+
| `{{ name }}` | Name of the invalid value |
5858
| `{{ key }}` | The array key of the invalid array element |
5959
| `{{ message }}` | The rule message of the invalid array element |

docs/03x-rules-choice.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ Message that will be shown if input value is not a valid choice.
8484

8585
The following parameters are available:
8686

87-
| Parameter | Description |
88-
|---------------------|-----------------------------------|
89-
| `{{ value }}` | The current invalid value |
90-
| `{{ name }}` | Name of the value being validated |
91-
| `{{ constraints }}` | The array of valid choices |
87+
| Parameter | Description |
88+
|---------------------|----------------------------|
89+
| `{{ value }}` | The current invalid value |
90+
| `{{ name }}` | Name of the invalid value |
91+
| `{{ constraints }}` | The array of valid choices |
9292

9393
### `multipleMessage`
9494

@@ -98,11 +98,11 @@ Message that will be shown when `multiple` is `true` and at least one of the inp
9898

9999
The following parameters are available:
100100

101-
| Parameter | Description |
102-
|---------------------|-----------------------------------|
103-
| `{{ value }}` | The current invalid value |
104-
| `{{ name }}` | Name of the value being validated |
105-
| `{{ constraints }}` | The array of valid choices |
101+
| Parameter | Description |
102+
|---------------------|----------------------------|
103+
| `{{ value }}` | The current invalid value |
104+
| `{{ name }}` | Name of the invalid value |
105+
| `{{ constraints }}` | The array of valid choices |
106106

107107
### `minMessage`
108108

@@ -116,7 +116,7 @@ The following parameters are available:
116116
|-----------------------|--------------------------------------|
117117
| `{{ value }}` | The current invalid value |
118118
| `{{ numValues }}` | The current invalid number of values |
119-
| `{{ name }}` | Name of the value being validated |
119+
| `{{ name }}` | Name of the invalid value |
120120
| `{{ constraints }}` | The array of valid choices |
121121
| `{{ minConstraint }}` | The minimum number of valid choices |
122122
| `{{ maxConstraint }}` | The maximum number of valid choices |
@@ -133,7 +133,7 @@ The following parameters are available:
133133
|-----------------------|--------------------------------------|
134134
| `{{ value }}` | The current invalid value |
135135
| `{{ numValues }}` | The current invalid number of values |
136-
| `{{ name }}` | Name of the value being validated |
136+
| `{{ name }}` | Name of the invalid value |
137137
| `{{ constraints }}` | The array of valid choices |
138138
| `{{ minConstraint }}` | The minimum number of valid choices |
139139
| `{{ maxConstraint }}` | The maximum number of valid choices |

docs/03x-rules-greater-than-or-equal.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Message that will be shown if the value is not greater than or equal to the cons
5050

5151
The following parameters are available:
5252

53-
| Parameter | Description |
54-
|--------------------|-----------------------------------|
55-
| `{{ value }}` | The current invalid value |
56-
| `{{ name }}` | Name of the value being validated |
57-
| `{{ constraint }}` | The comparison value |
53+
| Parameter | Description |
54+
|--------------------|---------------------------|
55+
| `{{ value }}` | The current invalid value |
56+
| `{{ name }}` | Name of the invalid value |
57+
| `{{ constraint }}` | The comparison value |

docs/03x-rules-greater-than.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Message that will be shown if the value is not greater than the constraint value
5050

5151
The following parameters are available:
5252

53-
| Parameter | Description |
54-
|--------------------|-----------------------------------|
55-
| `{{ value }}` | The current invalid value |
56-
| `{{ name }}` | Name of the value being validated |
57-
| `{{ constraint }}` | The comparison value |
53+
| Parameter | Description |
54+
|--------------------|---------------------------|
55+
| `{{ value }}` | The current invalid value |
56+
| `{{ name }}` | Name of the invalid value |
57+
| `{{ constraint }}` | The comparison value |

docs/03x-rules-less-than-or-equal.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Message that will be shown if the value is not less than or equal to the constra
5050

5151
The following parameters are available:
5252

53-
| Parameter | Description |
54-
|--------------------|-----------------------------------|
55-
| `{{ value }}` | The current invalid value |
56-
| `{{ name }}` | Name of the value being validated |
57-
| `{{ constraint }}` | The comparison value |
53+
| Parameter | Description |
54+
|--------------------|---------------------------|
55+
| `{{ value }}` | The current invalid value |
56+
| `{{ name }}` | Name of the invalid value |
57+
| `{{ constraint }}` | The comparison value |

docs/03x-rules-less-than.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Message that will be shown if the value is not less than the constraint value.
5050

5151
The following parameters are available:
5252

53-
| Parameter | Description |
54-
|--------------------|-----------------------------------|
55-
| `{{ value }}` | The current invalid value |
56-
| `{{ name }}` | Name of the value being validated |
57-
| `{{ constraint }}` | The comparison value |
53+
| Parameter | Description |
54+
|--------------------|---------------------------|
55+
| `{{ value }}` | The current invalid value |
56+
| `{{ name }}` | Name of the invalid value |
57+
| `{{ constraint }}` | The comparison value |

docs/03x-rules-not-blank.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Message that will be shown if the value is blank.
4747

4848
The following parameters are available:
4949

50-
| Parameter | Description |
51-
|---------------|-----------------------------------|
52-
| `{{ value }}` | The current invalid value |
53-
| `{{ name }}` | Name of the value being validated |
50+
| Parameter | Description |
51+
|---------------|---------------------------|
52+
| `{{ value }}` | The current invalid value |
53+
| `{{ name }}` | Name of the invalid value |

docs/03x-rules-range.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Check the [Custom Messages]() section for more information.
6464

6565
The following parameters are available:
6666

67-
| Parameter | Description |
68-
|-----------------------|-----------------------------------|
69-
| `{{ value }}` | The current invalid value |
70-
| `{{ name }}` | Name of the value being validated |
71-
| `{{ minConstraint }}` | The minimum range value |
72-
| `{{ maxConstraint }}` | The maximum range value |
67+
| Parameter | Description |
68+
|-----------------------|---------------------------|
69+
| `{{ value }}` | The current invalid value |
70+
| `{{ name }}` | Name of the invalid value |
71+
| `{{ minConstraint }}` | The minimum range value |
72+
| `{{ maxConstraint }}` | The maximum range value |

0 commit comments

Comments
 (0)