From 06381d30b95cacfab14fd9720e278cfc7bc1b780 Mon Sep 17 00:00:00 2001 From: Jan Rada <31016933+ZelvaMan@users.noreply.github.com> Date: Sun, 29 Oct 2023 12:57:08 +0100 Subject: [PATCH] allow uppercase generated file case --- src/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.go b/src/config.go index 5cb0d73..518e8f2 100644 --- a/src/config.go +++ b/src/config.go @@ -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) }