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 authored and omissis committed Nov 11, 2023
1 parent 4263cd7 commit 33ec559
Show file tree
Hide file tree
Showing 5 changed files with 888 additions and 865 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 33ec559

Please sign in to comment.