schema

package
v0.30.17 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage holds compiled OpenAPI schemas for a package, keyed by Type. All schemas are pre-processed and ready for repeated validation calls.

func NewStorage

func NewStorage(settings, values []byte) (*Storage, error)

NewStorage parses settings and values YAML schema documents, applies the required transformations, and returns a Storage ready for use.

func (*Storage) GetSchema

func (s *Storage) GetSchema(schemaType Type) *spec.Schema

GetSchema returns schema by Type

type Type

type Type string

Type identifies which schema variant is used for a given validation context.

const (
	// TypeSettings is the schema for user-supplied configuration values (config.yaml).
	TypeSettings Type = "config"
	// TypeValues is the schema for the full set of internal module values.
	TypeValues Type = "values"
)

Directories

Path Synopsis
Package defaults synthesizes an example value map from an OpenAPI schema.
Package defaults synthesizes an example value map from an OpenAPI schema.
Package reggen produces example strings that match a Perl-flavored regular expression.
Package reggen produces example strings that match a Perl-flavored regular expression.

Jump to

Keyboard shortcuts

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