validator

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationResult

type ValidationResult struct {
	Path    string
	Err     error
	Message string
}

func ValidateFiles

func ValidateFiles(paths ...string) ([]ValidationResult, error)

ValidateFiles validates the specified YAML files or directories recursively against the Application Catalog YAML schema.

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator provides means to validate YAML files against Application Catalog YAML schema

func NewValidator

func NewValidator() (*Validator, error)

NewValidator creates a new Application Catalog YAML schema validator.

func (*Validator) Validate

func (v *Validator) Validate(yamlBytes []byte) error

Validate validates the given YAML bytes against the Application Catalog YAML schema.

Jump to

Keyboard shortcuts

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