schema

package
v0.0.0-...-0795abe Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(raw []byte) error

Types

type SchemaError

type SchemaError struct {
	Err error
}

func NewSchemaError

func NewSchemaError(err error) *SchemaError

func (SchemaError) Error

func (e SchemaError) Error() string

type ValidationError

type ValidationError struct {
	Errors []gojsonschema.ResultError
}

func NewValidationError

func NewValidationError(errors []gojsonschema.ResultError) *ValidationError

func (ValidationError) Error

func (e ValidationError) Error() string

Jump to

Keyboard shortcuts

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