Skip to content

Commit e5bee5c

Browse files
authored
Add uses for equals and not_equals rules
1 parent 9aed936 commit e5bee5c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,8 @@ alpha_numeric No Fails if field contains anything other than
661661
alpha_numeric_space No Fails if field contains anything other than alpha-numeric characters, numbers or space.
662662
decimal No Fails if field contains anything other than a decimal number.
663663
differs Yes Fails if field does not differ from the one in the parameter. differs[field_name]
664-
exact_length Yes Fails if field is not exactly the parameter value. One or more comma-separated values. exact_length[5] or exact_length[5,8,12]
664+
equals Yes Fails if field is not exactly the parameter value.
665+
exact_length Yes Fails if field is not exactly the parameter value in length. One or more comma-separated values. exact_length[5] or exact_length[5,8,12]
665666
greater_than Yes Fails if field is less than or equal to the parameter value or not numeric. greater_than[8]
666667
greater_than_equal_to Yes Fails if field is less than the parameter value, or not numeric. greater_than_equal_to[5]
667668
in_list Yes Fails if field is not within a predetermined list. in_list[red,blue,green]
@@ -673,6 +674,7 @@ less_then_equal_to Yes Fails if field is greater than the parameter
673674
matches Yes The value must match the value of the field in the parameter. matches[field]
674675
max_length Yes Fails if field is longer than the parameter value. max_length[8]
675676
min_length Yes Fails if field is shorter than the parameter value. min_length[3]
677+
not_equals Yes Fails if field is exactly the parameter value.
676678
numeric No Fails if field contains anything other than numeric characters.
677679
regex_match Yes Fails if field does not match the regular expression. regex_match[/regex/]
678680
if_exist No If this rule is present, validation will only return possible errors if the field key exists,

0 commit comments

Comments
 (0)