Versions in this module Expand all Collapse all v0 v0.1.0 Sep 5, 2026 Changes in this version + func CheckPathRoot(root, target string) error + func DiscoverSchemas(dir string) ([]string, error) + func PointerSegment(key string) string + type Analyzer interface + Analyze func(context.Context, *Pass) + ID func() string + type Diagnostic struct + Context string + Line int + Message string + Path string + Pointer string + RuleID string + Severity Severity + type Document struct + Model *v3.Document + Path string + Root *yaml.Node + Schema *SchemaDocument + Source []byte + func LoadDocument(ctx context.Context, path, root string) (*Document, error) + func LoadSchemaDocument(ctx context.Context, path, root string) (*Document, error) + func (d *Document) Line(pointer string) int + type Engine struct + func (e *Engine) RegisterRule(r Rule) + func (e *Engine) Run(doc *v3high.Document) []Violation + type Linter struct + func (l *Linter) Document() *v3high.Document + func (l *Linter) LoadSpec(path string) error + type Pass struct + Documents []*Document + Root string + func NewPass(documents []*Document) *Pass + func (p *Pass) Data(key string) (any, bool) + func (p *Pass) Diagnostics() []Diagnostic + func (p *Pass) Err() error + func (p *Pass) Report(d Diagnostic) + func (p *Pass) ReportError(err error) + func (p *Pass) SetData(key string, value any) + type Rule interface + Name func() string + VisitOperation func(path string, method string, operation *v3high.Operation) []Violation + VisitPath func(path string, pathItem *v3high.PathItem) []Violation + VisitSchema func(schemaName string, schema *base.Schema) []Violation + type SchemaDocument struct + Content map[string]any + func LoadSchema(path string) (*SchemaDocument, error) + type SchemaRule interface + Name func() string + VisitSchema func(string, *SchemaDocument) []Violation + type Severity string + const SeverityError + const SeverityInfo + const SeverityWarning + type Violation struct + Message string + Path string + Pointer string + RuleName string