validation

package
v1.9.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaValidation

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

SchemaValidation validates the object against an OpenAPI schema.

func NewSchemaValidation

func NewSchemaValidation(resources openapi.Resources) *SchemaValidation

NewSchemaValidation creates a new SchemaValidation that can be used to validate objects.

func (*SchemaValidation) ValidateBytes

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

ValidateBytes will validates the object against using the Resources object.

Jump to

Keyboard shortcuts

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