Add server-side metadata unknown field validation

This commit is contained in:
Kevin Delgado
2022-04-14 23:50:18 +00:00
parent 5b92e46b22
commit d983fd8078
12 changed files with 734 additions and 204 deletions

8
vendor/sigs.k8s.io/json/json.go generated vendored
View File

@@ -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)
}