Release 0.7.0 #9
Labels
documentation
This is issue is either documentation or relates to the documentation
minor release
this issue documents a change for a minor release
planning
this issue documents plans for the future
Branch: epic/0.7.x
Release 0.7.0 should extend Release 0.6.0 #8 and add:
New Rules
max:value
The field under validation must be less than or equal to a maximum value. Strings, numerics, arrays, and files are evaluated in the same fashion as the size rule.
min:value
The field under validation must have a minimum value. Strings, numerics, arrays, and files are evaluated in the same fashion as the size rule.
min_digits:value
The integer under validation must have a minimum length of value.
multiple_of:value
The field under validation must be a multiple of value.
required_if:anotherfield,value,...
The field under validation must be present and not empty if the anotherfield field is equal to any value.
required_if_accepted:anotherfield,...
The field under validation must be present and not empty if the anotherfield field is equal to "yes", "on", 1, "1", true, or "true".
required_if_declined:anotherfield,..
The field under validation must be present and not empty if the anotherfield field is equal to "no", "off", 0, "0", false, or "false".
required_unless:anotherfield,value,...
The field under validation must be present and not empty unless the anotherfield field is equal to any value. This also means anotherfield must be present in the request data unless value is null. If value is null (required_unless:name,null), the field under validation will be required unless the comparison field is null or the comparison field is missing from the request data.
required_with:foo,bar,...
The field under validation must be present and not empty only if any of the other specified fields are present and not empty.
required_with_all:foo,bar,...
The field under validation must be present and not empty only if all of the other specified fields are present and not empty.
required_without:foo,bar,...
The field under validation must be present and not empty only when any of the other specified fields are empty or not present.
required_without_all:foo,bar,...
The field under validation must be present and not empty only when all of the other specified fields are empty or not present.
required_array_keys:foo,bar,...
The field under validation must be an array and must contain at least the specified keys.
The text was updated successfully, but these errors were encountered: