loaders

package
v0.0.0-...-fe5df96 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAll

func LoadAll(opts Options) (ast.Schemas, error)

Types

type Loader

type Loader func(opts Options) (ast.Schemas, error)

func ForSchemaType

func ForSchemaType(schemaType LoaderRef) (Loader, error)

type LoaderRef

type LoaderRef string
const (
	CUE                LoaderRef = "cue"
	KindsysCore        LoaderRef = "kindsys-core"
	KindsysComposable  LoaderRef = "kindsys-composable"
	KindsysCustom      LoaderRef = "kindsys-custom"
	JSONSchema         LoaderRef = "jsonschema"
	OpenAPI            LoaderRef = "openapi"
	KindRegistry       LoaderRef = "kind-registry"
	JSONSchemaRegistry LoaderRef = "jsonschema-registry"
)

type Options

type Options struct {
	CueEntrypoints               []string
	KindsysCoreEntrypoints       []string
	KindsysComposableEntrypoints []string
	KindsysCustomEntrypoints     []string
	JSONSchemaEntrypoints        []string
	OpenAPIEntrypoints           []string
	KindRegistryPath             string
	JSONSchemaRegistryPath       string

	// Cue-specific options
	CueImports []string

	// Kind registry-specific options
	KindRegistryVersion string
}

Jump to

Keyboard shortcuts

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