docs(judgement,events): state comments plainly

This commit is contained in:
sam committed 2026-11-23 23:46:27 +11:00
1 parent 0ad4374a2a
commit 2bfb262e9c
12 files changed
+37 -35

No files matched your search

+3 -4
View File
@@ -102,10 +102,9 @@ func (m Mapping) Validate() error {
return nil
}
// Failure describes one field that did not resolve cleanly against a payload --
// named by field and path so the operator knows exactly what drifted. Value is
// what the payload held at the path when the field was found with the wrong
// type; it is absent when the field is missing or null.
// Failure describes one mapping field that did not resolve against a payload.
// Value is the value found at Path when it has the wrong type. It is empty when
// the field is missing or null.
type Failure struct {
FieldName string `json:"field_name"`
Path string `json:"path"`