Comment on origin and JSON schema

This commit is contained in:
Tim Hockin 2025-03-16 14:32:49 -07:00
parent 46d5438c14
commit b47e839e4e
No known key found for this signature in database

View File

@ -44,6 +44,9 @@ type Error struct {
// - A structured format using "format=<dash-style-identifier>" 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