File: validator.patch

package info (click to toggle)
golang-github-socketplane-libovsdb 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,468 kB
  • sloc: makefile: 59; sh: 27
file content (15 lines) | stat: -rw-r--r-- 564 bytes parent folder | download
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)
 }