Skip to content
Open
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
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.22.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.24.0/modules/openapi-generator/src/main/resources/go/api.mustache for the original template }}
{{>partial_header}}
package {{packageName}}

Expand Down
11 changes: 10 additions & 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.22.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.24.0/modules/openapi-generator/src/main/resources/go/client.mustache for the original template }}
{{>partial_header}}
package {{packageName}}

Expand Down Expand Up @@ -578,6 +578,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err
*s = string(b)
return nil
}
if r, ok := v.(*io.Reader); ok {
*r = bytes.NewReader(b)
return nil
}
// Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte.
if p, ok := v.(*[]byte); ok {
*p = b
return nil
}
if f, ok := v.(*os.File); ok {
f, err = os.CreateTemp("", "HttpClientFile")
if err != nil {
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.22.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.24.0/modules/openapi-generator/src/main/resources/go/configuration.mustache for the original template }}
{{>partial_header}}
package {{packageName}}

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-sdk/generate-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ case "${LANGUAGE}" in
go)
# When the GENERATOR_VERSION changes, migrate also the templates in templates/go
# Renovate: datasource=github-tags depName=OpenAPITools/openapi-generator versioning=semver
GENERATOR_VERSION="v7.22.0"
GENERATOR_VERSION="v7.24.0"
;;
python)
# When the GENERATOR_VERSION changes, migrate also the templates in templates/python
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions scripts/generators/overrides/go/overrides.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
iaasV2ApiAreaId.path=iaas/v2api/model_area_id.go
iaasV2ApiAreaId.replacementPath=iaas/v2api/v2api_model_area_id.go
iaasV2ApiAreaId.hash=b7425456c4633b2e8c0a61e9ab3b579e
iaasV2ApiAreaId.hash=fd8a0426a8aefa66a10e7bb81c1cceba

iaasV1ApiAreaId.path=iaas/v1api/model_area_id.go
iaasV1ApiAreaId.replacementPath=iaas/v1api/v1api_model_area_id.go
iaasV1ApiAreaId.hash=a9d72364fec0794cab3b51f3680de584
iaasV1ApiAreaId.hash=b5626b52f7d93e9e9e26d679075d7031

iaasV2BetaApiAreaId.path=iaas/v2beta1api/model_area_id.go
iaasV2BetaApiAreaId.replacementPath=iaas/v2beta1api/v2beta_model_area_id.go
iaasV2BetaApiAreaId.hash=13e1bd33ceb69aa6a43a89c51c5dbffa
iaasV2BetaApiAreaId.hash=0e4f740cefba5981258cf15ecd995246
Loading