Versions in this module Expand all Collapse all v0 v0.3.0 Oct 9, 2026 Changes in this version + const RuleEarlierSpelling type Checker + Noticed map[string]bool + type EarlierSpelling struct + Count int + Line int type Model + Earlier EarlierSpelling v0.2.0 Oct 4, 2026 Changes in this version type SyntaxError + Column int v0.1.0 Oct 3, 2026 Changes in this version + const FileSuffix + const MaxAmbiguousWords + const MaxFileBytes + const MaxYAMLDepth + const RuleAmbiguousWord + const RuleBindingModel + const RuleBindingRole + const RuleDuplicateConcept + const RuleDuplicateSource + const RuleDuplicateValue + const RuleEntityBindings + const RuleExtendsCycle + const RuleExtendsKind + const RuleFileTooLarge + const RuleMeasureDimension + const RuleMeasureInput + const RuleModels + const RuleNarrowing + const RuleNoFiles + const RulePinMismatch + const RuleRatio + const RuleReferenceSyntax + const RuleSchema + const RuleSelfPin + const RuleSource + const RuleSubdirectoryFile + const RuleSymlink + const RuleTargetKind + const RuleUnit + const RuleUniversal + const RuleUnknownConcept + const RuleUnreadableDir + const RuleUnresolved + const RuleYAML + const RuleYAMLAnchor + const RuleYAMLCharacter + const RuleYAMLDirective + const RuleYAMLDocuments + const RuleYAMLDuplicate + const RuleYAMLEncoding + const RuleYAMLEscape + const RuleYAMLKey + const RuleYAMLLimit + const RuleYAMLLineEnding + const RuleYAMLNumber + const RuleYAMLTab + const RuleYAMLTag + const RuleYAMLUnsupported + var ErrTooLarge = errors.New("the file is larger than what is read of it") + func CheckoutCommit(fsys FS, dir string) (string, error) + func HasErrors(findings []Finding) bool + func ParseYAML(data []byte) (*Node, *SyntaxError) + func PrototypeNames() []string + func SchemaCommit() string + func SchemaJSON() []byte + func SchemaSource() string + func SortFindings(findings []Finding) + type Binding struct + Line int + Match string + Model string + Note string + Property string + Role string + type Checker struct + Models ModelReader + Profile Profile + Resolve Resolver + Schema Validator + func (c Checker) Check(g *Graph) []Finding + type Concept struct + Bindings []Binding + Extends string + ID string + Kind string + Labels map[string]string + Line int + Measure *Measure + Of string + Source string + Synonyms map[string][]string + Unit string + UnitsOf string + Values []Value + ValuesOf string + type ConceptRef struct + ID string + Pin string + Repo string + func ParseConceptRef(ref string) (ConceptRef, bool) + type Entity struct + Key []string + Properties map[string]Property + type Entry struct + Concept *Concept + File *File + type FS interface + ReadDir func(name string) ([]fs.DirEntry, error) + ReadFile func(name string) ([]byte, error) + ReadFileMax func(name string, max int64) ([]byte, error) + Stat func(name string) (fs.FileInfo, error) + type File struct + Concepts []*Concept + ID string + License string + Models map[string]string + Name string + ParseErr *SyntaxError + Path string + Root *Node + Sources []Source + type Finding struct + File string + Line int + Message string + Rule string + Severity Severity + type Graph struct + Address string + Concepts map[string]*Entry + Dir string + Files []*File + func LoadDir(fsys FS, dir string) (*Graph, error) + func LoadFiles(fsys FS, paths []string) (*Graph, error) + type HCLReader struct + func (HCLReader) ReadModel(fsys FS, path string) (*Model, error) + type Kind int + const Bool + const Map + const Null + const Number + const Seq + const String + type Measure struct + Aggregation string + Dimensions []string + Formula string + Inputs []string + type Model struct + Entities map[string]*Entity + type ModelReader interface + ReadModel func(fsys FS, path string) (*Model, error) + type ModelRef struct + Module string + Name string + Pin string + Repo string + func ParseModelRef(ref string) (ModelRef, bool) + type Node struct + Fields map[string]*Node + Items []*Node + Keys []string + Kind Kind + Line int + Text string + func (n *Node) At(path []string) int + func (n *Node) Field(key string) *Node + func (n *Node) Str() (string, bool) + func (n *Node) Value() any + type OSFS struct + func (OSFS) ReadDir(name string) ([]fs.DirEntry, error) + func (OSFS) ReadFile(name string) ([]byte, error) + func (OSFS) ReadFileMax(name string, max int64) ([]byte, error) + func (OSFS) Stat(name string) (fs.FileInfo, error) + type Profile string + const ProfileDefault + const ProfileUniversal + type Property struct + Entity string + Reference bool + Type string + func (p Property) IsReference() bool + type RefTarget struct + ID string + MaybeTagObject bool + Ref string + func RefTargets(fsys FS, dir, name string) ([]RefTarget, error) + type Resolver func(repo, pin string) (*Graph, error) + func GraphResolver(graphs map[string]*Graph) Resolver + type Severity string + const Error + const Info + const Warning + type Source struct + ID string + Line int + type SyntaxError struct + Line int + Message string + Rule string + func (e *SyntaxError) Error() string + type Validator interface + Validate func(v any) error + func DefaultSchema() Validator + type Value struct + Aliases map[string][]string + Codes map[string]string + ID string + Labels map[string]string