@@ -26,7 +26,7 @@ type GenerateOptions struct {
2626 EchoServer bool `yaml:"echo-server,omitempty"` // EchoServer specifies whether to generate echo server boilerplate
2727 GinServer bool `yaml:"gin-server,omitempty"` // GinServer specifies whether to generate gin server boilerplate
2828 GorillaServer bool `yaml:"gorilla-server,omitempty"` // GorillaServer specifies whether to generate Gorilla server boilerplate
29- Strict bool `yaml:"strict-server,omitempty"` // Strict specifies whether to generate strict server wrapper
29+ Strict bool `yaml:"strict-server,omitempty"` // Strict specifies whether to generate strict server wrapper
3030 Client bool `yaml:"client,omitempty"` // Client specifies whether to generate client boilerplate
3131 Models bool `yaml:"models,omitempty"` // Models specifies whether to generate type definitions
3232 EmbeddedSpec bool `yaml:"embedded-spec,omitempty"` // Whether to embed the swagger spec in the generated code
@@ -61,11 +61,12 @@ type CompatibilityOptions struct {
6161
6262// OutputOptions are used to modify the output code in some way.
6363type OutputOptions struct {
64- SkipFmt bool `yaml:"skip-fmt,omitempty"` // Whether to skip go imports on the generated code
65- SkipPrune bool `yaml:"skip-prune,omitempty"` // Whether to skip pruning unused components on the generated code
66- IncludeTags []string `yaml:"include-tags,omitempty"` // Only include operations that have one of these tags. Ignored when empty.
67- ExcludeTags []string `yaml:"exclude-tags,omitempty"` // Exclude operations that have one of these tags. Ignored when empty.
68- UserTemplates map [string ]string `yaml:"user-templates,omitempty"` // Override built-in templates from user-provided files
64+ SkipFmt bool `yaml:"skip-fmt,omitempty"` // Whether to skip go imports on the generated code
65+ SkipPrune bool `yaml:"skip-prune,omitempty"` // Whether to skip pruning unused components on the generated code
66+ IncludeTags []string `yaml:"include-tags,omitempty"` // Only include operations that have one of these tags. Ignored when empty.
67+ ExcludeTags []string `yaml:"exclude-tags,omitempty"` // Exclude operations that have one of these tags. Ignored when empty.
68+ UserTemplates map [string ]string `yaml:"user-templates,omitempty"` // Override built-in templates from user-provided files
69+ UserTemplateFiles map [string ]string `yaml:"user-template-files,omitempty"` // Same as UserTemplates, with filenames as values instead
6970
7071 ExcludeSchemas []string `yaml:"exclude-schemas,omitempty"` // Exclude from generation schemas with given names. Ignored when empty.
7172 ResponseTypeSuffix string `yaml:"response-type-suffix,omitempty"` // The suffix used for responses types
0 commit comments