-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update go-playground/validator to v10
- Loading branch information
Showing
4 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package yaml | ||
|
||
// StructValidator need to implement Struct method only | ||
// ( see https://godoc.org/gopkg.in/go-playground/validator.v9#Validate.Struct ) | ||
// ( see https://pkg.go.dev/github.com/go-playground/validator/v10#Validate.Struct ) | ||
type StructValidator interface { | ||
Struct(interface{}) error | ||
} | ||
|
||
// FieldError need to implement StructField method only | ||
// ( see https://godoc.org/gopkg.in/go-playground/validator.v9#FieldError ) | ||
// ( see https://pkg.go.dev/github.com/go-playground/validator/v10#FieldError ) | ||
type FieldError interface { | ||
StructField() string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters