kubernetes/vendor/k8s.io/kube-openapi/pkg/validation/validate/schema.go

var specSchemaType

type SchemaValidator

// AgainstSchema validates the specified data against the provided schema, using a registry of supported formats.
//
// When no pre-parsed *spec.Schema structure is provided, it uses a JSON schema as default. See example.
func AgainstSchema(schema *spec.Schema, data interface{}

// NewSchemaValidator creates a new schema validator.
//
// Panics if the provided schema is invalid.
func NewSchemaValidator(schema *spec.Schema, rootSchema interface{}

func (s *SchemaValidator) NewValidatorForField(field string, schema *spec.Schema, rootSchema interface{}

func (s *SchemaValidator) NewValidatorForIndex(index int, schema *spec.Schema, rootSchema interface{}

// SetPath sets the path for this schema validator
func (s *SchemaValidator) SetPath(path string) {}

// Applies returns true when this schema validator applies
func (s *SchemaValidator) Applies(source interface{}

// Validate validates the data against the schema
func (s *SchemaValidator) Validate(data interface{}

func (s *SchemaValidator) typeValidator() ValueValidator {}

func (s *SchemaValidator) commonValidator() ValueValidator {}

func (s *SchemaValidator) sliceValidator() ValueValidator {}

func (s *SchemaValidator) numberValidator() ValueValidator {}

func (s *SchemaValidator) stringValidator() ValueValidator {}

func (s *SchemaValidator) formatValidator() ValueValidator {}

func (s *SchemaValidator) schemaPropsValidator() ValueValidator {}

func (s *SchemaValidator) objectValidator() ValueValidator {}