validator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAgainstCRD

func ValidateAgainstCRD(crdPath, resourcePath string) error

ValidateAgainstCRD validates a resource YAML file against a CRD Returns an error if validation fails

func ValidateSchema

func ValidateSchema(schema *types.Schema) error

ValidateSchema checks for interface{} types in the schema before generation

Types

type InterfaceTypeError

type InterfaceTypeError struct {
	Fields []InterfaceTypeLocation
}

InterfaceTypeError represents an error caused by interface{} types in the schema

func (*InterfaceTypeError) Error

func (e *InterfaceTypeError) Error() string

type InterfaceTypeLocation

type InterfaceTypeLocation struct {
	StructName string
	FieldName  string
	FieldPath  string
	YAMLPath   string
	Line       int
	IsArray    bool
}

InterfaceTypeLocation describes where an interface{} type was found

Jump to

Keyboard shortcuts

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