jsonschema

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefValid

type RefValid struct{}

RefValid declares the JSON Schema reference validation hook.

libopenapi resolver errors are collected by the motor while building the rolodex and emitted as json-schema-ref-valid results before rule functions run.

func (RefValid) GetCategory

func (r RefValid) GetCategory() string

func (RefValid) GetSchema

func (r RefValid) GetSchema() model.RuleFunctionSchema

func (RefValid) RunRule

func (r RefValid) RunRule(nodes []*yaml.Node, context model.RuleFunctionContext) []model.RuleFunctionResult

type Sanity

type Sanity struct{}

Sanity runs lightweight JSON Schema consistency checks.

func (Sanity) GetCategory

func (s Sanity) GetCategory() string

func (Sanity) GetSchema

func (s Sanity) GetSchema() model.RuleFunctionSchema

func (Sanity) RunRule

func (s Sanity) RunRule(nodes []*yaml.Node, context model.RuleFunctionContext) []model.RuleFunctionResult

type Valid

type Valid struct{}

Valid validates a JSON Schema document against its declared metaschema.

func (Valid) GetCategory

func (v Valid) GetCategory() string

func (Valid) GetSchema

func (v Valid) GetSchema() model.RuleFunctionSchema

func (Valid) RunRule

func (v Valid) RunRule(nodes []*yaml.Node, context model.RuleFunctionContext) []model.RuleFunctionResult

Jump to

Keyboard shortcuts

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