Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions languages/golang/openapi-generator-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ additionalProperties:
enumClassPrefix: true
generateInterfaces: true
disallowAdditionalPropertiesIfNotPresent: false
enumUnknownDefaultCase: true
templateDir: languages/golang/templates
files:
custom/api_mock.mustache:
Expand Down
2 changes: 1 addition & 1 deletion languages/golang/templates/api.mustache
Original file line number Diff line number Diff line change
@@ -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}}

Expand Down
2 changes: 1 addition & 1 deletion languages/golang/templates/client.mustache
Original file line number Diff line number Diff line change
@@ -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}}

Expand Down
2 changes: 1 addition & 1 deletion languages/golang/templates/configuration.mustache
Original file line number Diff line number Diff line change
@@ -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}}

Expand Down
3 changes: 2 additions & 1 deletion scripts/generate-sdk/generate-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading