validation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDiagnostics = 100

Variables

This section is empty.

Functions

func CompileSchema

func CompileSchema(schemaBytes []byte, resourceID string) (*jsonschema.Schema, error)

Types

type Engine

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

func NewEngine

func NewEngine() (*Engine, error)

func (*Engine) Validate

func (e *Engine) Validate(data []byte, options Options) (result.Validation, *OperationalFailure)

type OperationalFailure

type OperationalFailure struct {
	Code     string
	Message  string
	ExitCode int
}

func (*OperationalFailure) Error

func (f *OperationalFailure) Error() string

type Options

type Options struct {
	Through             string
	ExpectedSpecVersion string
	SupportedExtensions []string
	Limits              carrier.Limits
}

Jump to

Keyboard shortcuts

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