Versions in this module Expand all Collapse all v1 v1.17.1 Feb 13, 2026 v1.17.0 Feb 11, 2026 Changes in this version + func ApplyNodeFix(fix validation.Fix, doc *openapi.OpenAPI, rootNode *yaml.Node) error + type AppliedFix struct + After string + Before string + Error *validation.Error + Fix validation.Fix + type Engine struct + func NewEngine(opts Options, prompter validation.Prompter, registry *FixRegistry) *Engine + func (e *Engine) ProcessErrors(ctx context.Context, doc *openapi.OpenAPI, errs []error) (*Result, error) + type FailedFix struct + Error *validation.Error + Fix validation.Fix + FixError error + type FixProvider func(err *validation.Error) validation.Fix + type FixRegistry struct + func NewFixRegistry() *FixRegistry + func (r *FixRegistry) GetFix(err *validation.Error) validation.Fix + func (r *FixRegistry) Register(ruleID string, provider FixProvider) + type Mode int + const ModeAuto + const ModeInteractive + const ModeNone + type Options struct + DryRun bool + Mode Mode + type Result struct + Applied []AppliedFix + Failed []FailedFix + Skipped []SkippedFix + type SkipReason int + const SkipConflict + const SkipInteractive + const SkipUser + type SkippedFix struct + Error *validation.Error + Fix validation.Fix + Reason SkipReason + type TerminalPrompter struct + func NewTerminalPrompter(in io.Reader, out io.Writer) *TerminalPrompter + func (p *TerminalPrompter) Confirm(message string) (bool, error) + func (p *TerminalPrompter) PromptFix(finding *validation.Error, fix validation.Fix) ([]string, error)