We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43b1a1 commit 82b9290Copy full SHA for 82b9290
options.go
@@ -25,7 +25,10 @@ func WithPrivateFieldValidation() Option {
25
}
26
27
28
-// WithEarlyExit
+// WithEarlyExit configures the validator to immediately stop validation as soon as the first error is encountered
29
+//
30
+// This feature could be an opt-in behavior, allowing to opt into "early exit" validation, without breaking current workflows
31
+// Early exit on the first failure would save time by avoiding unnecessary checks on the remaining fields
32
func WithEarlyExit() Option {
33
return func(v *Validate) {
34
v.earlyExit = true
0 commit comments