Skip to content

Commit e8db047

Browse files
chore(deps): update dependency speakeasy-api/speakeasy to v1.487.0 (#67)
* chore(deps): update dependency speakeasy-api/speakeasy to v1.487.0 * Bump .speakeasy/gen.yaml based on label * Update provider based on openapi.yaml changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: team-k8s-bot <[email protected]>
1 parent 90786a3 commit e8db047

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

.github/workflows/bump-version.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
repo: speakeasy
4141
cli_name: speakeasy
4242
package_type: zip
43-
version: 1.484.1 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
43+
version: 1.487.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
4444

4545
- name: Checkout
4646
uses: actions/checkout@v4

.github/workflows/generate_on_pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
repo: speakeasy
4949
cli_name: speakeasy
5050
package_type: zip
51-
version: 1.484.1 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
51+
version: 1.487.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
5252

5353
- name: Checkout current repo
5454
uses: actions/checkout@v4

.speakeasy/gen.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ id: b81e5def-5b1e-4753-ae7c-0efccc2e6f61
33
management:
44
docChecksum: 34b2443a340696b1a551870449747ec4
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.484.1
7-
generationVersion: 2.503.2
8-
releaseVersion: 0.2.4
9-
configChecksum: 9e2f614ee5133ea720a12d7197d9e2e9
6+
speakeasyVersion: 1.487.0
7+
generationVersion: 2.506.0
8+
releaseVersion: 0.2.5
9+
configChecksum: fe20990526e3844f97a776ece534b9f7
1010
features:
1111
go:
1212
additionalDependencies: 0.1.0
13-
constsAndDefaults: 0.1.6
14-
core: 3.6.12
13+
constsAndDefaults: 0.1.7
14+
core: 3.7.0
1515
deepObjectParams: 0.1.1
1616
defaultEnabledRetries: 0.2.0
1717
envVarSecurityUsage: 0.3.2

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
go:
16-
version: 0.2.4
16+
version: 0.2.5
1717
additionalDependencies: {}
1818
allowUnknownFieldsInWeakUnions: false
1919
clientServerStatusCodesAsErrors: true

internal/utils/queryparams.go

+6
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ func populateQueryParams(queryParams interface{}, globals interface{}, values ur
6565
continue
6666
}
6767

68+
constValue := parseConstTag(fieldType)
69+
if constValue != nil {
70+
values.Add(qpTag.ParamName, *constValue)
71+
continue
72+
}
73+
6874
if globals != nil {
6975
var globalFound bool
7076
fieldType, valType, globalFound = populateFromGlobals(fieldType, valType, queryParamTagKey, globals)

internal/utils/utils.go

+10
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ func AsSecuritySource(security interface{}) func(context.Context) (interface{},
9696
}
9797
}
9898

99+
func parseConstTag(field reflect.StructField) *string {
100+
value := field.Tag.Get("const")
101+
102+
if value == "" {
103+
return nil
104+
}
105+
106+
return &value
107+
}
108+
99109
func parseStructTag(tagKey string, field reflect.StructField) map[string]string {
100110
tag := field.Tag.Get(tagKey)
101111
if tag == "" {

sdk.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ func New(opts ...SDKOption) *SDK {
269269
sdkConfiguration: sdkConfiguration{
270270
Language: "go",
271271
OpenAPIDocVersion: "0.0.1",
272-
SDKVersion: "0.2.4",
273-
GenVersion: "2.503.2",
274-
UserAgent: "speakeasy-sdk/go 0.2.4 2.503.2 0.0.1 github.com/Kong/sdk-konnect-go",
272+
SDKVersion: "0.2.5",
273+
GenVersion: "2.506.0",
274+
UserAgent: "speakeasy-sdk/go 0.2.5 2.506.0 0.0.1 github.com/Kong/sdk-konnect-go",
275275
Hooks: hooks.New(),
276276
},
277277
}

0 commit comments

Comments
 (0)