1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-10-16
Description: New() no longer takes arguments, and WithRequiredStructEnabled no longer exists.
--- a/client/validation.go
+++ b/client/validation.go
@@ -17,7 +17,7 @@ import (
var validate *validator.Validate
func init() {
- validate = validator.New(validator.WithRequiredStructEnabled())
+ validate = validator.New() // validator.WithRequiredStructEnabled())
// Register custom validations if needed in the future
// e.g., validate.RegisterValidation("custom_tag", customValidationFunc)
}
|