Skip to content

Commit

Permalink
allow uppercase generated file case
Browse files Browse the repository at this point in the history
  • Loading branch information
ZelvaMan committed Oct 29, 2023
1 parent a4f0c91 commit 06381d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func GetConfig() (*Config, error) {
config.ModelTemplate = joinIfRelative(config.PathBase, config.ModelTemplate)
config.OutputFolder = joinIfRelative(config.PathBase, config.OutputFolder)

if !contains(ValidCase, config.GeneratedFileCase) {
if !contains(ValidCase, strings.ToLower(config.GeneratedFileCase)) {
return nil, fmt.Errorf(" '%s' is not valid case (maybe GeneratedFileCase is missing)", config.GeneratedFileCase)
}

Expand Down

0 comments on commit 06381d3

Please sign in to comment.