From c202bb268915edf68022011cdf0ed490f4ec2df0 Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Wed, 13 May 2026 16:23:22 +0200 Subject: [PATCH 1/5] feat(go): activate generator support for resolving inline-enums --- scripts/generate-sdk/languages/go.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-sdk/languages/go.sh b/scripts/generate-sdk/languages/go.sh index f840f1e..fc38206 100644 --- a/scripts/generate-sdk/languages/go.sh +++ b/scripts/generate-sdk/languages/go.sh @@ -171,7 +171,7 @@ generate_go_sdk() { --git-user-id "${GIT_USER_ID}" \ --git-repo-id "${GIT_REPO_ID}/services/${service}" \ --global-property apis,models,modelTests=true,modelDocs=false,apiDocs=false,supportingFiles,apiTests=false\ - --inline-schema-options "SKIP_SCHEMA_REUSE=true" \ + --inline-schema-options "SKIP_SCHEMA_REUSE=true,RESOLVE_INLINE_ENUMS=true" \ --http-user-agent "stackit-sdk-go/${service}" \ --reserved-words-mappings type=types \ --config "${ROOT_DIR}/languages/golang/openapi-generator-config.yml" From 15953e4cdf2af4100d59bcab1be63a25c0337bee Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Wed, 13 May 2026 17:05:23 +0200 Subject: [PATCH 2/5] fix(ci): extend rm waiters glob to match versioned API waiters --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9a15f03..7241b0b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -80,7 +80,7 @@ jobs: - name: Remove waiters working-directory: ./sdk-repo-updated - run: rm -r services/*/wait + run: rm -r services/**/wait - name: Install SDK project tools and dependencies working-directory: ./sdk-repo-updated From e549b0517c6c9a45f3b9ddbc35906318ae724ee9 Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Wed, 13 May 2026 17:16:27 +0200 Subject: [PATCH 3/5] fix(ci): use find instead of double * glob --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7241b0b..06623a4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -80,7 +80,7 @@ jobs: - name: Remove waiters working-directory: ./sdk-repo-updated - run: rm -r services/**/wait + run: find ./services -type d -name "wait" -exec rm -r {} + - name: Install SDK project tools and dependencies working-directory: ./sdk-repo-updated From d0d2a3cdbe4f33e7ce70d44d418b2ba92e2743d2 Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Thu, 21 May 2026 16:08:18 +0200 Subject: [PATCH 4/5] fix(ci): delete examples before linting In this workflow we only want to check generated code and don't want to fail the build when waiters or examples do not match the generated code. Examples often use waiters, so the `make sync-tidy` step in sdk-go would fail when there are no waiters. Thus we also remove the examples before linting. --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 06623a4..d9d21ba 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,6 +81,10 @@ jobs: - name: Remove waiters working-directory: ./sdk-repo-updated run: find ./services -type d -name "wait" -exec rm -r {} + + + - name: Remove examples + working-directory: ./sdk-repo-updated + run: rm -r ./examples - name: Install SDK project tools and dependencies working-directory: ./sdk-repo-updated From 0cde2ce1ebe99b9e4166b0a4b5f8566daa062b27 Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Thu, 21 May 2026 16:19:53 +0200 Subject: [PATCH 5/5] WIP fixup --- .github/workflows/ci.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d9d21ba..5111a65 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -78,14 +78,6 @@ jobs: shell: bash run: make generate-go-sdk - - name: Remove waiters - working-directory: ./sdk-repo-updated - run: find ./services -type d -name "wait" -exec rm -r {} + - - - name: Remove examples - working-directory: ./sdk-repo-updated - run: rm -r ./examples - - name: Install SDK project tools and dependencies working-directory: ./sdk-repo-updated run: make project-tools