validation

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskToCreateDirectory

func AskToCreateDirectory(path string)

func AskToSetValue

func AskToSetValue(env *ast.Document, assignment *ast.Assignment)

func Explain

func Explain(env *ast.Document, keyErr ValidationError, fix bool)

Types

type ValidationError

type ValidationError struct {
	Error      any
	Assignment *ast.Assignment
}

func NewError added in v0.4.0

func NewError(assignment *ast.Assignment, err error) ValidationError

func Validate

func Validate(doc *ast.Document, handlers []render.Handler, ignoreErrors []string) []ValidationError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL