Add server-side metadata unknown field validation
This commit is contained in:
8
vendor/sigs.k8s.io/json/json.go
generated
vendored
8
vendor/sigs.k8s.io/json/json.go
generated
vendored
@@ -137,3 +137,11 @@ func SyntaxErrorOffset(err error) (isSyntaxError bool, offset int64) {
|
||||
return false, 0
|
||||
}
|
||||
}
|
||||
|
||||
// FieldError are errors that provide access to
|
||||
// the path of the erroneous field
|
||||
type FieldError interface {
|
||||
Error() string
|
||||
FieldPath() string
|
||||
SetFieldPath(path string)
|
||||
}
|
||||
|
Reference in New Issue
Block a user