add required_without_all to doc

pull/469/head
A Mashmooli 6 years ago
parent a9e1a9226c
commit 22eebe9ac5
  1. 14
      doc.go

@ -293,6 +293,20 @@ Examples:
// require the field if the Field1 or Field2 is not present:
Usage: required_without=Field1 Field2
Required Without All
The field under validation must be present and not empty only when all
of the other specified fields are not present. For strings ensures value is
not "". For slices, maps, pointers, interfaces, channels and functions
ensures the value is not nil.
Usage: required_without_all
Example:
// require the field if the Field1 and Field2 is not present:
Usage: required_without_all=Field1 Field2
Is Default
This validates that the value is the default value and is almost the

Loading…
Cancel
Save