diagnostic

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code string

type Error

type Error struct {
	Kind     string
	Code     Code
	Message  string
	Range    Range
	Severity Severity
	Fields   Fields
	Cause    error
}

func As

func As(err error) (Error, bool)

func (Error) Error

func (err Error) Error() string

func (Error) Unwrap

func (err Error) Unwrap() error

type Fields

type Fields struct {
	Name     string
	Field    string
	Schema   string
	Expected string
	Actual   string
	Index    string
	Level    int
	Operator string
	Path     string
	Details  map[string]string
}

type Position

type Position struct {
	Line   int
	Column int
}

type Range

type Range struct {
	Start Position
	End   Position
}

func FromASTRange

func FromASTRange(source ast.SourceRange) Range

type Severity

type Severity string
const (
	SeverityError   Severity = "error"
	SeverityWarning Severity = "warning"
	SeverityInfo    Severity = "info"
)

Jump to

Keyboard shortcuts

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