update kjson

This commit is contained in:
Kevin Delgado
2022-07-13 16:05:45 +00:00
parent d983fd8078
commit c210483cf0
60 changed files with 141 additions and 146 deletions

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

@@ -84,6 +84,8 @@ const (
// and a list of the strict failures (if any) are returned. If no `strictOptions` are selected,
// all supported strict checks are performed.
//
// Strict errors returned will implement the FieldError interface for the specific erroneous fields.
//
// Currently supported strict checks are:
// - DisallowDuplicateFields: ensure the data contains no duplicate fields
// - DisallowUnknownFields: ensure the data contains no unknown fields (when decoding into typed structs)
@@ -138,10 +140,11 @@ func SyntaxErrorOffset(err error) (isSyntaxError bool, offset int64) {
}
}
// FieldError are errors that provide access to
// the path of the erroneous field
// FieldError is an error that provides access to the path of the erroneous field
type FieldError interface {
Error() string
error
// FieldPath provides the full path of the erroneous field within the json object.
FieldPath() string
// SetFieldPath updates the path of the erroneous field output in the error message.
SetFieldPath(path string)
}