smithy

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UnspecifiedNamespace = "example"
View Source
const UnspecifiedVersion = "0.0"

Variables

View Source
var ImportFileExtensions = map[string][]string{
	".smithy": []string{"smithy"},
	".json":   []string{"smithy"},
}
View Source
var StringValuesNeverEnum bool = false

set to true to prevent enum traits that have only values from ever becoming actul enum objects.

Functions

func AllTypeRefs

func AllTypeRefs(model *sadl.Model) map[string]bool

func AssembleModel added in v1.7.0

func AssembleModel(paths []string, tags []string) (*smithylib.AST, error)

func EnsureNamespaced

func EnsureNamespaced(ns, name string) string

func Export

func Export(model *sadl.Model, out string, conf *sadl.Data, exportAst bool) error

func FromSADL

func FromSADL(model *sadl.Model, ns string) (*smithylib.AST, error)

func Import

func Import(paths []string, conf *sadl.Data) (*sadl.Model, error)

func IsValidFile

func IsValidFile(path string) bool

func ToSadl added in v1.7.0

func ToSadl(ast *smithylib.AST, conf *sadl.Data) (*sadl.Model, error)

func WithAnnotation

func WithAnnotation(annos map[string]string, key string, value string) map[string]string

Types

type Importer added in v1.7.0

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

Jump to

Keyboard shortcuts

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