type
IssueTarget
IssueTarget selects the current field or a descendant of its candidate value. It is immutable. Repeated rows use their _key, never their display position. Configuration and runtime identities are supplied by Ridu when validation runs.
Full signature
type IssueTarget struct {
segments []IssueTargetSegment
err string
}Methods
IssueTarget.Block()Block selects one Blocks row by _key and its expected blockType. A different Block case is a different target even when a caller reuses the same key.
IssueTarget.Err()Err reports malformed selector syntax. Ridu also checks field names, keys, Block cases and locales against the candidate when the validator returns.
IssueTarget.Field()Field selects a child field, optionally through dot-separated groups. Crossing an array or Blocks field requires an explicit Row or Block selector. Each traversed group must contain an object in the candidate. For an absent, null or malformed group, target that group itself instead. A missing scalar child of an existing object remains a valid target.
IssueTarget.Locale()Locale selects an exact translation in an all-locales candidate envelope. Ordinary callbacks inherit their exact locale and do not need this selector. A target cannot request fallback or leave an exact-locale callback's scope.
IssueTarget.Row()Row selects one array row by its nonempty _key.
IssueTarget.Segments()Segments returns a detached view of the relative selectors.