Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ validate := validator.New(validator.WithRequiredStructEnabled())
| eqcsfield | Field Equals Another Field (relative)|
| eqfield | Field Equals Another Field |
| fieldcontains | Check the indicated characters are present in the Field |
| fieldexcludes | Check the indicated characters are not present in the field |
| fieldexcludes | Current field does not contain another field's value |
| gtcsfield | Field Greater Than Another Relative Field |
| gtecsfield | Field Greater Than or Equal To Another Relative Field |
| gtefield | Field Greater Than or Equal To Another Field |
Expand Down
11 changes: 6 additions & 5 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,13 +803,14 @@ other types.

Usage: containsfield=InnerStructField.Field

# Field Excludes Another Field
# Field Excludes Another Field's Value

This does the same as excludes except for struct fields. It should only be used
with string types. See the behavior of reflect.Value.String() for behavior on
other types.
This validates that the current field's string value does not contain the
string value of the field named by the parameter. It should only be used with
string types. If the referenced field cannot be resolved, validation succeeds.
See the behavior of reflect.Value.String() for behavior on other types.

Usage: excludesfield=InnerStructField.Field
Usage: fieldexcludes=InnerStructField.Field

# Unique

Expand Down