Skip to content

Commit

Permalink
chore: split generate.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoBarba committed Oct 9, 2023
1 parent 1a6edd0 commit 5975153
Show file tree
Hide file tree
Showing 7 changed files with 867 additions and 852 deletions.
22 changes: 22 additions & 0 deletions pkg/generator/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package generator

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 SchemaMapping struct {
SchemaID string
PackageName string
RootType string
OutputName string
}
Loading

0 comments on commit 5975153

Please sign in to comment.