Skip to content

Commit 9f8a330

Browse files
committed
Document in array validation rule
1 parent 4c0f790 commit 9f8a330

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

validation.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ Below is a list of all available validation rules and their function:
496496
[Exists (Database)](#rule-exists)
497497
[Filled](#rule-filled)
498498
[Image (File)](#rule-image)
499-
[In](#rule-in)
499+
[In](#rule-in)
500+
[In Array](#rule-in-array)
500501
[Integer](#rule-integer)
501502
[IP Address](#rule-ip)
502503
[JSON](#rule-json)
@@ -660,7 +661,12 @@ The file under validation must be an image (jpeg, png, bmp, gif, or svg)
660661
<a name="rule-in"></a>
661662
#### in:_foo_,_bar_,...
662663

663-
The field under validation must be included in the given list of values.
664+
The field under validation must be included in the given list of values.
665+
666+
<a name="rule-in-array"></a>
667+
#### in_array:_anotherfield_
668+
669+
The field under validation must exist in _anotherfield_'s values.
664670

665671
<a name="rule-integer"></a>
666672
#### integer

0 commit comments

Comments
 (0)