inputvariables

package
v0.169.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationError added in v0.117.0

type ValidationError struct {
	Code    string          `json:"code,omitempty"`
	Message string          `json:"message,omitempty"`
	Input   json.RawMessage `json:"input,omitempty"`
	Errors  []error         `json:"errors,omitempty"`
}

func NewValidationError added in v0.135.0

func NewValidationError(message string, input json.RawMessage, errors []error) *ValidationError

func (*ValidationError) Error added in v0.131.0

func (e *ValidationError) Error() string

type Validator

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

func NewValidator

func NewValidator(schema string, disableVerboseErrors bool) (*Validator, error)

func (*Validator) Validate

func (v *Validator) Validate(ctx context.Context, variables []byte, errOut io.Writer) (valid bool, err error)

Jump to

Keyboard shortcuts

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