Documentation
¶
Index ¶
- Constants
- Variables
- func AllTypeRefs(model *sadl.Model) map[string]bool
- func AssembleModel(paths []string, tags []string) (*smithylib.AST, error)
- func EnsureNamespaced(ns, name string) string
- func Export(model *sadl.Model, out string, conf *sadl.Data, exportAst bool) error
- func FromSADL(model *sadl.Model, ns string) (*smithylib.AST, error)
- func Import(paths []string, conf *sadl.Data) (*sadl.Model, error)
- func IsValidFile(path string) bool
- func ToSadl(ast *smithylib.AST, conf *sadl.Data) (*sadl.Model, error)
- func WithAnnotation(annos map[string]string, key string, value string) map[string]string
- type Importer
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 AssembleModel ¶ added in v1.7.0
func EnsureNamespaced ¶
func IsValidFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.