Skip to content

Commit f2c94d6

Browse files
thockink8s-publishing-bot
authored andcommitted
Comment on origin and JSON schema
Kubernetes-commit: b47e839e4ecc77e2caad7855c9869517559dfbaf
1 parent b63ba07 commit f2c94d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/util/validation/field/errors.go

+3
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)