json

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SpinachSchema = "spinach.json"

SpinachSchema describes spinach schema.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator tracks schemas validation.

func NewValidator

func NewValidator() *Validator

NewValidator returns a new instance.

func (*Validator) Validate

func (v *Validator) Validate(k string, bb []byte) error

Validate runs document thru given schema validation.

Jump to

Keyboard shortcuts

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