Skip to content

Commit b47e839

Browse files
committed
Comment on origin and JSON schema
1 parent 46d5438 commit b47e839

File tree

1 file changed

+3
-0
lines changed
  • staging/src/k8s.io/apimachinery/pkg/util/validation/field

1 file changed

+3
-0
lines changed

staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ type Error struct {
4444
// - A structured format using "format=<dash-style-identifier>" for validation errors related to specific formats
4545
// (e.g., "format=dns-label", "format=qualified-name")
4646
//
47+
// If the Origin corresponds to an existing declarative validation tag or JSON Schema keyword,
48+
// use that same name for consistency.
49+
//
4750
// Origin should be set in the most deeply nested validation function that
4851
// can still identify the unique source of the error.
4952
Origin string

0 commit comments

Comments
 (0)