@@ -247,7 +247,7 @@ Example #2
247247This validates that the value is not the data types default zero value.
248248For numbers ensures value is not zero. For strings ensures value is
249249not "". For slices, maps, pointers, interfaces, channels and functions
250- ensures the value is not nil.
250+ ensures the value is not nil. For structs ensures value is not the zero value.
251251
252252 Usage: required
253253
@@ -256,7 +256,7 @@ ensures the value is not nil.
256256The field under validation must be present and not empty only if all
257257the other specified fields are equal to the value following the specified
258258field. For strings ensures value is not "". For slices, maps, pointers,
259- interfaces, channels and functions ensures the value is not nil.
259+ interfaces, channels and functions ensures the value is not nil. For structs ensures value is not the zero value.
260260
261261 Usage: required_if
262262
@@ -273,7 +273,7 @@ Examples:
273273The field under validation must be present and not empty unless all
274274the other specified fields are equal to the value following the specified
275275field. For strings ensures value is not "". For slices, maps, pointers,
276- interfaces, channels and functions ensures the value is not nil.
276+ interfaces, channels and functions ensures the value is not nil. For structs ensures value is not the zero value.
277277
278278 Usage: required_unless
279279
@@ -290,7 +290,7 @@ Examples:
290290The field under validation must be present and not empty only if any
291291of the other specified fields are present. For strings ensures value is
292292not "". For slices, maps, pointers, interfaces, channels and functions
293- ensures the value is not nil.
293+ ensures the value is not nil. For structs ensures value is not the zero value.
294294
295295 Usage: required_with
296296
@@ -307,7 +307,7 @@ Examples:
307307The field under validation must be present and not empty only if all
308308of the other specified fields are present. For strings ensures value is
309309not "". For slices, maps, pointers, interfaces, channels and functions
310- ensures the value is not nil.
310+ ensures the value is not nil. For structs ensures value is not the zero value.
311311
312312 Usage: required_with_all
313313
@@ -321,7 +321,7 @@ Example:
321321The field under validation must be present and not empty only when any
322322of the other specified fields are not present. For strings ensures value is
323323not "". For slices, maps, pointers, interfaces, channels and functions
324- ensures the value is not nil.
324+ ensures the value is not nil. For structs ensures value is not the zero value.
325325
326326 Usage: required_without
327327
@@ -338,7 +338,7 @@ Examples:
338338The field under validation must be present and not empty only when all
339339of the other specified fields are not present. For strings ensures value is
340340not "". For slices, maps, pointers, interfaces, channels and functions
341- ensures the value is not nil.
341+ ensures the value is not nil. For structs ensures value is not the zero value.
342342
343343 Usage: required_without_all
344344
@@ -352,7 +352,7 @@ Example:
352352The field under validation must not be present or not empty only if all
353353the other specified fields are equal to the value following the specified
354354field. For strings ensures value is not "". For slices, maps, pointers,
355- interfaces, channels and functions ensures the value is not nil.
355+ interfaces, channels and functions ensures the value is not nil. For structs ensures value is not the zero value.
356356
357357 Usage: excluded_if
358358
@@ -369,7 +369,7 @@ Examples:
369369The field under validation must not be present or empty unless all
370370the other specified fields are equal to the value following the specified
371371field. For strings ensures value is not "". For slices, maps, pointers,
372- interfaces, channels and functions ensures the value is not nil.
372+ interfaces, channels and functions ensures the value is not nil. For structs ensures value is not the zero value.
373373
374374 Usage: excluded_unless
375375
0 commit comments