type

ValidationIssue

One invalid input path.

Properties

PropertyTypeDescription
CodestringThe Code value.
PathstringThe Path value.
MessagestringThe Message value.
TargetstringTarget is an opaque schema/stable-occurrence correlation token for structured field issues.
FieldIDschema.StableIDThe FieldID value.
CollectionIDschema.StableIDThe CollectionID value.
GlobalIDschema.StableIDThe GlobalID value.
Localeschema.LocaleCodeThe Locale value.

Full signature

type ValidationIssue struct { Code string `json:"code"` Path string `json:"path"` Message string `json:"message"` // Target is an opaque schema/stable-occurrence correlation token for structured field issues. Target string `json:"target,omitempty"` FieldID schema.StableID `json:"fieldId,omitempty"` CollectionID schema.StableID `json:"collectionId,omitempty"` GlobalID schema.StableID `json:"globalId,omitempty"` Locale schema.LocaleCode `json:"locale,omitempty"` }

Source protocol/envelope.go:234