Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OnValidationErrCallback ¶
type Option ¶
type Option func(*options)
func WithFailFast ¶
func WithFailFast() Option
WithFailFast tells validator to immediately stop doing further validation after first validation error. This option is ignored if message is only supporting validator.validatorLegacy interface.
func WithOnValidationErrCallback ¶
func WithOnValidationErrCallback(onValidationErrCallback OnValidationErrCallback) Option
WithOnValidationErrCallback registers function that will be invoked on validation error(s).
Click to show internal directories.
Click to hide internal directories.