validator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeValidatorList

func NodeValidatorList(node schema.Node, rootSchema schema.Schema, parent validator) []validator

func ValidateLiteralValue

func ValidateLiteralValue(node schema.Node, jsonValue bytes.Bytes)

Types

type Tree

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

func NewTree

func NewTree(list []validator) Tree

func (*Tree) FeedLeaves

func (t *Tree) FeedLeaves(jsonLex lexeme.LexEvent) bool

FeedLeaves returns true if the validation of the entire tree is completed. There are no more validators left in the tree.

Jump to

Keyboard shortcuts

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