From c9867ccb76c04977d10fa574278df287f4c4c0b7 Mon Sep 17 00:00:00 2001 From: Stavros Date: Sat, 20 Sep 2025 11:08:57 +0300 Subject: [PATCH] chore: fix typo --- internal/utils/decoders/decoders.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/utils/decoders/decoders.go b/internal/utils/decoders/decoders.go index 72a11d5..7493717 100644 --- a/internal/utils/decoders/decoders.go +++ b/internal/utils/decoders/decoders.go @@ -18,10 +18,10 @@ func NormalizeKeys(keys map[string]string, rootName string, sep string) map[stri finalKey = append(finalKey, rootName) finalKey = append(finalKey, "providers") - cebabKey := strings.ToLower(k) + kebabKey := strings.ToLower(k) for _, known := range knownKeys { - if strings.HasSuffix(cebabKey, strings.ReplaceAll(known, "-", sep)) { + if strings.HasSuffix(kebabKey, strings.ReplaceAll(known, "-", sep)) { suffix = known break } @@ -31,7 +31,7 @@ func NormalizeKeys(keys map[string]string, rootName string, sep string) map[stri continue } - clientNameParts := strings.Split(strings.TrimPrefix(strings.TrimSuffix(cebabKey, sep+strings.ReplaceAll(suffix, "-", sep)), "providers"+sep), sep) + clientNameParts := strings.Split(strings.TrimPrefix(strings.TrimSuffix(kebabKey, sep+strings.ReplaceAll(suffix, "-", sep)), "providers"+sep), sep) for i, p := range clientNameParts { if i == 0 { @@ -46,9 +46,9 @@ func NormalizeKeys(keys map[string]string, rootName string, sep string) map[stri finalKey = append(finalKey, camelClientName) - filedParts := strings.Split(suffix, "-") + fieldParts := strings.Split(suffix, "-") - for i, p := range filedParts { + for i, p := range fieldParts { if i == 0 { camelField += p continue