diff --git a/baked_in.go b/baked_in.go index ab3d6df..2f95150 100644 --- a/baked_in.go +++ b/baked_in.go @@ -1314,7 +1314,8 @@ func hasValue(fl FieldLevel) bool { } } -// RequiredWith is the validation function for validating if the current field's if any of the other specified fields are present. +// RequiredWith is the validation function +// the field under validation must be present and not empty only if any of the other specified fields are present. func requiredWith(fl FieldLevel) bool { field := fl.Field()