Documentation ¶ Index ¶ Constants type Config type Generator func New(config Config) (*Generator, error) func (g *Generator) DoFile(fileName string) error func (g *Generator) Sources() map[string][]byte type SchemaMapping Constants ¶ View Source const ( YAMLPackage = "gopkg.in/yaml.v3" ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { SchemaMappings []SchemaMapping ExtraImports bool Capitalizations []string ResolveExtensions []string YAMLExtensions []string DefaultPackageName string DefaultOutputName string StructNameFromTitle bool Warner func(string) Tags []string OnlyModels bool } type Generator ¶ type Generator struct { // contains filtered or unexported fields } func New ¶ func New(config Config) (*Generator, error) func (*Generator) DoFile ¶ func (g *Generator) DoFile(fileName string) error func (*Generator) Sources ¶ func (g *Generator) Sources() map[string][]byte type SchemaMapping ¶ type SchemaMapping struct { SchemaID string PackageName string RootType string OutputName string } Source Files ¶ View all Source files config.go formatter.go generate.go json_formatter.go name_scope.go output.go schema_generator.go utils.go validator.go yaml_formatter.go Click to show internal directories. Click to hide internal directories.