kube-openapik8s.io/kube-openapi/pkg/util/proto/validation Index | Files

package validation

import "k8s.io/kube-openapi/pkg/util/proto/validation"

Index

Functions

func ValidateModel

func ValidateModel(obj interface{}, schema proto.Schema, name string) []error

Types

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 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

Source Files

errors.go types.go validation.go

Version
v0.0.0-20250318190949-c8a335a9a2ff (latest)
Published
Mar 18, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
4 weeks ago

Tools for package owners.