validator

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package validator provides semantic validation for AQL queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	Message string
	Pos     ast.Position
}

ValidationError represents a validation error with position information.

func (*ValidationError) Error

func (e *ValidationError) Error() string

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator validates AQL queries against the schema.

func New

func New() *Validator

New creates a new validator.

func (*Validator) Errors

func (v *Validator) Errors() []*ValidationError

Errors returns all validation errors.

func (*Validator) Validate

func (v *Validator) Validate(query *ast.Query) error

Validate validates a query and returns any validation errors.

Jump to

Keyboard shortcuts

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