From 7422b8be6b2cd6bd7716de98c00fe4cfe6f32a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Fri, 3 Sep 2021 16:38:35 +0200 Subject: [PATCH] Allow single letter REST API param names --- pkg/codegen/templating.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/codegen/templating.go b/pkg/codegen/templating.go index 709388c09..329a30267 100644 --- a/pkg/codegen/templating.go +++ b/pkg/codegen/templating.go @@ -89,6 +89,8 @@ func export(pp ...string) (out string) { for _, p := range pp { if len(p) > 1 { p = strings.ToUpper(p[:1]) + p[1:] + } else { + p = strings.ToUpper(p) } if ss := nonIdentChars.Split(p, -1); len(ss) > 1 {