summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-playground/validator/v10/options.go
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2025-03-09 17:47:56 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2025-03-10 01:59:49 +0100
commit3ac1ee16f377d31a0fb80c8dae28b6239ac4229e (patch)
treef61faa581feaaeaba2542b9f2b8234a590684413 /vendor/github.com/go-playground/validator/v10/options.go
parent[chore] update URLs to forked source (diff)
downloadgotosocial-3ac1ee16f377d31a0fb80c8dae28b6239ac4229e.tar.xz
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/go-playground/validator/v10/options.go')
-rw-r--r--vendor/github.com/go-playground/validator/v10/options.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/github.com/go-playground/validator/v10/options.go b/vendor/github.com/go-playground/validator/v10/options.go
deleted file mode 100644
index 86a0db218..000000000
--- a/vendor/github.com/go-playground/validator/v10/options.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package validator
-
-// Option represents a configurations option to be applied to validator during initialization.
-type Option func(*Validate)
-
-// WithRequiredStructEnabled enables required tag on non-pointer structs to be applied instead of ignored.
-//
-// This was made opt-in behaviour in order to maintain backward compatibility with the behaviour previous
-// to being able to apply struct level validations on struct fields directly.
-//
-// It is recommended you enabled this as it will be the default behaviour in v11+
-func WithRequiredStructEnabled() Option {
- return func(v *Validate) {
- v.requiredStructEnabled = true
- }
-}
-
-// WithPrivateFieldValidation activates validation for unexported fields via the use of the `unsafe` package.
-//
-// By opting into this feature you are acknowledging that you are aware of the risks and accept any current or future
-// consequences of using this feature.
-func WithPrivateFieldValidation() Option {
- return func(v *Validate) {
- v.privateFieldValidation = true
- }
-}