From 1daeed7d405c8938757923756f4fb13349183c2b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Mar 2024 01:31:40 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.227.0 --- .speakeasy/gen.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- gen.yaml | 2 +- go.mod | 4 +++- pkg/utils/headers.go | 4 +++- speakeasy.go | 6 +++--- 6 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8eb5085..486987b 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 21d46a05-66ce-4545-8bd2-9680fda35912 management: docChecksum: abbc3a8faac54f76013e5d509a8d11ec docVersion: 1.0.0 - speakeasyVersion: 1.213.0 - generationVersion: 2.283.1 - releaseVersion: 0.15.2 - configChecksum: 75aa7e2b49c7c1363d0d1e27106cc35c + speakeasyVersion: 1.227.0 + generationVersion: 2.291.0 + releaseVersion: 0.15.3 + configChecksum: 0750714489932bed9e0853345820a1ec repoURL: https://github.com/speakeasy-sdks/template-speakeasy-bar.git repoSubDirectory: . installationURL: https://github.com/speakeasy-sdks/template-speakeasy-bar @@ -14,7 +14,7 @@ management: features: go: callbacks: 1.0.0 - core: 3.4.4 + core: 3.4.5 devContainers: 2.90.0 errors: 2.81.8 examples: 2.81.3 diff --git a/RELEASES.md b/RELEASES.md index 1f99ca4..03baebc 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -268,4 +268,14 @@ Based on: ### Generated - [go v0.15.2] . ### Releases -- [Go v0.15.2] https://github.com/speakeasy-sdks/template-speakeasy-bar/releases/tag/v0.15.2 - . \ No newline at end of file +- [Go v0.15.2] https://github.com/speakeasy-sdks/template-speakeasy-bar/releases/tag/v0.15.2 - . + +## 2024-03-27 01:31:29 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.227.0 (2.291.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.15.3] . +### Releases +- [Go v0.15.3] https://github.com/speakeasy-sdks/template-speakeasy-bar/releases/tag/v0.15.3 - . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index d019ca7..79db90e 100644 --- a/gen.yaml +++ b/gen.yaml @@ -13,7 +13,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false go: - version: 0.15.2 + version: 0.15.3 additionalDependencies: {} clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true diff --git a/go.mod b/go.mod index 3cb05d9..12157f4 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,10 @@ + module github.com/speakeasy-sdks/template-speakeasy-bar go 1.20 require ( github.com/cenkalti/backoff/v4 v4.2.0 - github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 + github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 + github.com/spyzhov/ajson v0.8.0 ) diff --git a/pkg/utils/headers.go b/pkg/utils/headers.go index 0837022..734f96b 100644 --- a/pkg/utils/headers.go +++ b/pkg/utils/headers.go @@ -10,7 +10,7 @@ import ( "strings" ) -func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}) { +func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}, globals map[string]map[string]map[string]interface{}) { headerParamsStructType := reflect.TypeOf(headers) headerParamsValType := reflect.ValueOf(headers) @@ -18,6 +18,8 @@ func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{} fieldType := headerParamsStructType.Field(i) valType := headerParamsValType.Field(i) + valType = populateFromGlobals(fieldType, valType, "header", globals) + tag := parseParamTag(headerParamTagKey, fieldType, "simple", false) if tag == nil { continue diff --git a/speakeasy.go b/speakeasy.go index bf990e3..f6171e6 100644 --- a/speakeasy.go +++ b/speakeasy.go @@ -228,9 +228,9 @@ func New(opts ...SDKOption) *Speakeasy { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "1.0.0", - SDKVersion: "0.15.2", - GenVersion: "2.283.1", - UserAgent: "speakeasy-sdk/go 0.15.2 2.283.1 1.0.0 github.com/speakeasy-sdks/template-speakeasy-bar", + SDKVersion: "0.15.3", + GenVersion: "2.291.0", + UserAgent: "speakeasy-sdk/go 0.15.3 2.291.0 1.0.0 github.com/speakeasy-sdks/template-speakeasy-bar", ServerDefaults: map[string]map[string]string{ "prod": {}, "staging": {},