Documentation
¶
Overview ¶
Package validate checks loaded collections for structural problems that a single file cannot reveal: duplicate ids, broken references, unknown node types, dependency cycles, and suspicious characters in values.
Each check is a small function over a shared index; Validate runs them in a fixed order. Positions are filled in later by the store, from the YAML paths recorded here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LintFinding ¶
LintFinding is one suspicious property of a value. Char is set for invisible characters, as "U+XXXX".
func LintValue ¶
func LintValue(value string) []LintFinding
LintValue reports leading/trailing whitespace, line breaks or tabs, and invisible characters in a single-line value.
type Target ¶
type Target struct {
Collections []model.Collection
}
Target is everything validated together: all loaded collections, so that cross-collection references can be checked.