validation

package
v0.24.6-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObjectKind added in v0.24.0

func GetObjectKind(object interface{}) (schema.GroupVersionKind, []error)

func Parse added in v0.24.0

func Parse(data []byte) (interface{}, error)

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