validation

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: Apache-2.0 Imports: 12 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 {
	openapi.SchemaVisitor

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

Jump to

Keyboard shortcuts

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