simplecue

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAST

func GenerateAST(val cue.Value, c Config) (*ast.Schema, error)

Types

type Config

type Config struct {
	// Package name used to generate code into.
	Package string

	// For dataqueries, the schema doesn't define any top-level object
	ForceVariantEnvelope bool

	SchemaMetadata ast.SchemaMeta

	Libraries []LibraryInclude
}

type LibraryInclude

type LibraryInclude struct {
	FSPath     string // path of the library on the filesystem
	ImportPath string // path used in CUE files to import that library
}

Jump to

Keyboard shortcuts

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