generators

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTypesGo

func GenerateTypesGo(v cue.Value, cfg *GoConfig) ([]byte, error)

func GenerateTypesTS

func GenerateTypesTS(v cue.Value, cfg *TSConfig) (*ast.File, error)

GenerateTypesTS generates native TypeScript types and defaults corresponding to the provided Schema.

Types

type GoConfig

type GoConfig struct {
	Config      *OpenApiConfig
	PackageName string
	ApplyFuncs  []dstutil.ApplyFunc
}

type OpenApiConfig

type OpenApiConfig struct {
	Config   *openapi.Config
	IsGroup  bool
	RootName string
	SubPath  cue.Path
}

type TSConfig

type TSConfig struct {
	CuetsyConfig *cuetsy.Config
	IsGroup      bool
	RootName     string
}

Jump to

Keyboard shortcuts

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