From 6b3e1bbf76cd4aa7311368d14a39883ba4b0ac61 Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Tue, 28 Apr 2026 17:22:25 +0200 Subject: [PATCH] chore: bump go sdk generator to v7.22.0 relates to STACKITSDK-427 --- languages/golang/openapi-generator-config.yml | 1 + languages/golang/templates/api.mustache | 2 +- languages/golang/templates/client.mustache | 2 +- languages/golang/templates/configuration.mustache | 2 +- scripts/generate-sdk/generate-sdk.sh | 3 ++- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/languages/golang/openapi-generator-config.yml b/languages/golang/openapi-generator-config.yml index 91457f55..56b95981 100644 --- a/languages/golang/openapi-generator-config.yml +++ b/languages/golang/openapi-generator-config.yml @@ -5,6 +5,7 @@ additionalProperties: enumClassPrefix: true generateInterfaces: true disallowAdditionalPropertiesIfNotPresent: false + enumUnknownDefaultCase: true templateDir: languages/golang/templates files: custom/api_mock.mustache: diff --git a/languages/golang/templates/api.mustache b/languages/golang/templates/api.mustache index e0dc0031..79ddebd2 100644 --- a/languages/golang/templates/api.mustache +++ b/languages/golang/templates/api.mustache @@ -1,4 +1,4 @@ -{{! This template was customized to use the GenericOpenAPIError from the core module. See https://github.com/OpenAPITools/openapi-generator/blob/v7.20.0/modules/openapi-generator/src/main/resources/go/api.mustache for the original template }} +{{! This template was customized to use the GenericOpenAPIError from the core module. See https://github.com/OpenAPITools/openapi-generator/blob/v7.22.0/modules/openapi-generator/src/main/resources/go/api.mustache for the original template }} {{>partial_header}} package {{packageName}} diff --git a/languages/golang/templates/client.mustache b/languages/golang/templates/client.mustache index 757ea143..b641c8e7 100644 --- a/languages/golang/templates/client.mustache +++ b/languages/golang/templates/client.mustache @@ -1,4 +1,4 @@ -{{! This template was customized to support the custom configuration options from the core module. See https://github.com/OpenAPITools/openapi-generator/blob/v7.20.0/modules/openapi-generator/src/main/resources/go/client.mustache for the original template }} +{{! This template was customized to support the custom configuration options from the core module. See https://github.com/OpenAPITools/openapi-generator/blob/v7.22.0/modules/openapi-generator/src/main/resources/go/client.mustache for the original template }} {{>partial_header}} package {{packageName}} diff --git a/languages/golang/templates/configuration.mustache b/languages/golang/templates/configuration.mustache index 5e9fa909..028c1651 100644 --- a/languages/golang/templates/configuration.mustache +++ b/languages/golang/templates/configuration.mustache @@ -1,4 +1,4 @@ -{{! This template was ENTIRELY overwritten to support the custom configuration type and options from the STACKIT SDK core module. See https://github.com/OpenAPITools/openapi-generator/blob/v7.20.0/modules/openapi-generator/src/main/resources/go/configuration.mustache for the original template }} +{{! This template was ENTIRELY overwritten to support the custom configuration type and options from the STACKIT SDK core module. See https://github.com/OpenAPITools/openapi-generator/blob/v7.22.0/modules/openapi-generator/src/main/resources/go/configuration.mustache for the original template }} {{>partial_header}} package {{packageName}} diff --git a/scripts/generate-sdk/generate-sdk.sh b/scripts/generate-sdk/generate-sdk.sh index 03b2689c..55244a6f 100755 --- a/scripts/generate-sdk/generate-sdk.sh +++ b/scripts/generate-sdk/generate-sdk.sh @@ -55,7 +55,8 @@ fi case "${LANGUAGE}" in go) # When the GENERATOR_VERSION changes, migrate also the templates in templates/go - GENERATOR_VERSION="v7.20.0" +# Renovate: datasource=github-tags depName=OpenAPITools/openapi-generator versioning=semver + GENERATOR_VERSION="v7.22.0" ;; python) # When the GENERATOR_VERSION changes, migrate also the templates in templates/python