summaryrefslogtreecommitdiffstats
path: root/dependencies/pkg/mod/github.com/goccy/go-yaml@v1.11.0/validate.go
blob: 20a2d6d918d686948ac44cfe9af9beb3dec8f0cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package yaml

// StructValidator need to implement Struct method only
// ( 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://pkg.go.dev/github.com/go-playground/validator/v10#FieldError )
type FieldError interface {
	StructField() string
}