Skip to content

Remove [ and ] in exportNames to allow proper generation of deep-query parameters#334

Open
gasttor wants to merge 1 commit intocommercetools:mainfrom
gasttor:main
Open

Remove [ and ] in exportNames to allow proper generation of deep-query parameters#334
gasttor wants to merge 1 commit intocommercetools:mainfrom
gasttor:main

Conversation

@gasttor
Copy link

@gasttor gasttor commented Feb 3, 2026

In issue #333 I found out, that the usage of deep-query parameters lead to non-compiling code in the GO_CLIENT. This PR tackles the issue in the generation of the exportName in the GoStringExtension.

Besides the dot I also replace the character [ and ] with an underscore. This generates proper names and lead to compiling code.

fyi @mvantellingen @demeyerthom

@mvantellingen
Copy link
Contributor

Looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants