validation

package
v0.29.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 200

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConjunctiveSchema

type ConjunctiveSchema []Schema

ConjunctiveSchema encapsulates a schema list.

func (ConjunctiveSchema) ValidateBytes

func (c ConjunctiveSchema) ValidateBytes(data []byte) error

ValidateBytes validates bytes per a ConjunctiveSchema.

type NoDoubleKeySchema

type NoDoubleKeySchema struct{}

NoDoubleKeySchema is a schema that disallows double keys.

func (NoDoubleKeySchema) ValidateBytes

func (NoDoubleKeySchema) ValidateBytes(data []byte) error

ValidateBytes validates bytes.

type NullSchema

type NullSchema struct{}

NullSchema always validates bytes.

func (NullSchema) ValidateBytes

func (NullSchema) ValidateBytes(data []byte) error

ValidateBytes never fails for NullSchema.

type Schema

type Schema interface {
	ValidateBytes(data []byte) error
}

Schema is an interface that knows how to validate an API object serialized to a byte array.

func NewParamVerifyingSchema added in v0.24.0

func NewParamVerifyingSchema(s Schema, verifier resource.Verifier, directive string) Schema

func NewSchemaValidation added in v0.27.0

func NewSchemaValidation(resourcesGetter openapi.OpenAPIResourcesGetter) Schema

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

Jump to

Keyboard shortcuts

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