From fcd1c8f14f92818e617db90520408d3fb833bd11 Mon Sep 17 00:00:00 2001 From: Thorsten Gast Date: Tue, 3 Feb 2026 14:30:54 +0100 Subject: [PATCH] Remove [ and ] in exportNames to allow proper generation of deep-query parameters --- .../kotlin/io/vrap/codegen/languages/go/GoStringExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/go/src/main/kotlin/io/vrap/codegen/languages/go/GoStringExtension.kt b/languages/go/src/main/kotlin/io/vrap/codegen/languages/go/GoStringExtension.kt index 180515f67..3bc07a34c 100644 --- a/languages/go/src/main/kotlin/io/vrap/codegen/languages/go/GoStringExtension.kt +++ b/languages/go/src/main/kotlin/io/vrap/codegen/languages/go/GoStringExtension.kt @@ -41,7 +41,7 @@ fun String.exportName(): String { if (this[0].isUpperCase()) { return this } - var name = StringCaseFormat.UPPER_CAMEL_CASE.apply(this.replace(".", "_")) + var name = StringCaseFormat.UPPER_CAMEL_CASE.apply(this.replace(Regex("[.\\[\\]]"), "_")) mapOf( "^Id$" to "ID" ).forEach { (key, value) -> name = name.replace(key.toRegex(), value) }