Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.227.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 27, 2024
1 parent 6e02758 commit 1daeed7
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ 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
published: true
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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
go:
version: 0.15.2
version: 0.15.3
additionalDependencies: {}
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 3 additions & 1 deletion pkg/utils/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ 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)

for i := 0; i < headerParamsStructType.NumField(); i++ {
fieldType := headerParamsStructType.Field(i)
valType := headerParamsValType.Field(i)

valType = populateFromGlobals(fieldType, valType, "header", globals)

tag := parseParamTag(headerParamTagKey, fieldType, "simple", false)
if tag == nil {
continue
Expand Down
6 changes: 3 additions & 3 deletions speakeasy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down

0 comments on commit 1daeed7

Please sign in to comment.