Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Add multiple_of validation rule #6522

Merged
merged 1 commit into from Oct 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions validation.md
Expand Up @@ -639,6 +639,7 @@ Below is a list of all available validation rules and their function:
[MIME Types](#rule-mimetypes)
[MIME Type By File Extension](#rule-mimes)
[Min](#rule-min)
[Multiple Of](#multiple-of)
[Not In](#rule-not-in)
[Not Regex](#rule-not-regex)
[Nullable](#rule-nullable)
Expand Down Expand Up @@ -983,6 +984,11 @@ A full listing of MIME types and their corresponding extensions may be found at

The field under validation must have a minimum _value_. Strings, numerics, arrays, and files are evaluated in the same fashion as the [`size`](#rule-size) rule.

<a name="multiple-of"></a>
#### multiple_of:_value_

The field under validation must be a multiple of _value_. This can be useful when validating a number input that utilises the `step` attribute.

<a name="rule-not-in"></a>
#### not_in:_foo_,_bar_,...

Expand Down