validation

package
Version: v0.0.0-...-4eadfbb Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

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

func (*Errors) AppendErrors

func (e *Errors) AppendErrors(err ...error)

func (*Errors) Errors

func (e *Errors) Errors() []error

type InvalidObjectTypeError

type InvalidObjectTypeError struct {
	Path string
	Type string
}

func (InvalidObjectTypeError) Error

func (e InvalidObjectTypeError) Error() string

type InvalidTypeError

type InvalidTypeError struct {
	Path     string
	Expected string
	Actual   string
}

func (InvalidTypeError) Error

func (e InvalidTypeError) Error() string

type MissingRequiredFieldError

type MissingRequiredFieldError struct {
	Path  string
	Field string
}

func (MissingRequiredFieldError) Error

type SchemaValidation

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

func NewSchemaValidation

func NewSchemaValidation(resources openapi.Resources) *SchemaValidation

func (*SchemaValidation) ValidateBytes

func (v *SchemaValidation) ValidateBytes(data []byte) error

type UnknownFieldError

type UnknownFieldError struct {
	Path  string
	Field string
}

func (UnknownFieldError) Error

func (e UnknownFieldError) Error() string

type ValidationError

type ValidationError struct {
	Path string
	Err  error
}

func (ValidationError) Error

func (e ValidationError) Error() string

type ValidationItem

type ValidationItem interface {
	proto.SchemaVisitor

	Errors() []error
	Path() *proto.Path
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL