diff --git a/staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go b/staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go index 1bba47e2bf8..840d645ee32 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go @@ -44,6 +44,9 @@ type Error struct { // - A structured format using "format=" for validation errors related to specific formats // (e.g., "format=dns-label", "format=qualified-name") // + // If the Origin corresponds to an existing declarative validation tag or JSON Schema keyword, + // use that same name for consistency. + // // Origin should be set in the most deeply nested validation function that // can still identify the unique source of the error. Origin string