Skip to content

Commit 4bb403e

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.509.1
1 parent 1df56b0 commit 4bb403e

File tree

12 files changed

+95
-23
lines changed

12 files changed

+95
-23
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2858c6d9-f946-4185-ae68-3b8e708830fb
33
management:
4-
docChecksum: 8936bb89055708b0a128b348edfc1f22
4+
docChecksum: 9d4bd5f193431667b20b2ca472e24b5e
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.507.0
7-
generationVersion: 2.533.0
8-
releaseVersion: 3.25.0
9-
configChecksum: 2712f4348950aeea5bf3bb51a7d55afa
6+
speakeasyVersion: 1.509.1
7+
generationVersion: 2.539.1
8+
releaseVersion: 3.25.1
9+
configChecksum: 476690b55ce7919ffef0605a0339b0e0
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go
@@ -1362,6 +1362,8 @@ examples:
13621362
responses:
13631363
4XX:
13641364
application/json: {"message": "<value>", "status_code": 532077}
1365+
2XX:
1366+
application/json: {"created_at": "2025-11-20T07:47:04.136Z", "format": "yaml", "id": "<id>", "spec": "<value>"}
13651367
getSchemaStoreItem:
13661368
speakeasy-default-get-schema-store-item:
13671369
responses:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.507.0
1+
speakeasyVersion: 1.509.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:cabd16dbec379f1c3b0ed96a6af3c5736ac0262089aef8f1314d262d84d3179a
6-
sourceBlobDigest: sha256:86010a5f9df72e2d616b21bfd6eb3ad529495772af59218175de1a42a57347ec
5+
sourceRevisionDigest: sha256:48ac8583b536af0a3623fc69b9211e10e6c4ed902d3ca799adccbfc4490dc0d9
6+
sourceBlobDigest: sha256:880d20a128cd2fe2f39bf95e069930ffbaea616817ac2e44ff2f99cd5046c12d
77
tags:
88
- latest
99
- main
@@ -12,10 +12,10 @@ targets:
1212
speakeasy-client-sdk-go:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:cabd16dbec379f1c3b0ed96a6af3c5736ac0262089aef8f1314d262d84d3179a
16-
sourceBlobDigest: sha256:86010a5f9df72e2d616b21bfd6eb3ad529495772af59218175de1a42a57347ec
15+
sourceRevisionDigest: sha256:48ac8583b536af0a3623fc69b9211e10e6c4ed902d3ca799adccbfc4490dc0d9
16+
sourceBlobDigest: sha256:880d20a128cd2fe2f39bf95e069930ffbaea616817ac2e44ff2f99cd5046c12d
1717
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
18-
codeSamplesRevisionDigest: sha256:93c029b0b2270d04e071ad998cdef386230581ec73849f6b76060bc52518b4af
18+
codeSamplesRevisionDigest: sha256:5a98534eb3ca3c84e122633039c5aa09e2a63bd3d99727a4e00ca8cc332c0c1e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,4 +1646,14 @@ Based on:
16461646
### Generated
16471647
- [go v3.25.0] .
16481648
### Releases
1649-
- [Go v3.25.0] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.25.0 - .
1649+
- [Go v3.25.0] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.25.0 - .
1650+
1651+
## 2025-03-04 22:02:18
1652+
### Changes
1653+
Based on:
1654+
- OpenAPI Doc
1655+
- Speakeasy CLI 1.509.1 (2.539.1) https://github.com/speakeasy-api/speakeasy
1656+
### Generated
1657+
- [go v3.25.1] .
1658+
### Releases
1659+
- [Go v3.25.1] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.25.1 - .

codeSamples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ actions:
14721472
if err != nil {
14731473
log.Fatal(err)
14741474
}
1475-
if res != nil {
1475+
if res.SchemaStoreItem != nil {
14761476
// handle response
14771477
}
14781478
}

docs/pkg/models/operations/createschemastoreitemresponse.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
8-
| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9-
| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10-
| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
8+
| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `SchemaStoreItem` | [*shared.SchemaStoreItem](../../../pkg/models/shared/schemastoreitem.md) | :heavy_minus_sign: | OK |
10+
| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
11+
| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

docs/sdks/schemastore/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func main() {
4141
if err != nil {
4242
log.Fatal(err)
4343
}
44-
if res != nil {
44+
if res.SchemaStoreItem != nil {
4545
// handle response
4646
}
4747
}

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ generation:
1919
tests:
2020
generateNewTests: true
2121
go:
22-
version: 3.25.0
22+
version: 3.25.1
2323
additionalDependencies: {}
2424
allowUnknownFieldsInWeakUnions: false
2525
clientServerStatusCodesAsErrors: true

pkg/models/operations/createschemastoreitem.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package operations
55
import (
66
"encoding/json"
77
"fmt"
8+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
89
"net/http"
910
)
1011

@@ -56,6 +57,8 @@ func (o *CreateSchemaStoreItemRequestBody) GetSpec() string {
5657
type CreateSchemaStoreItemResponse struct {
5758
// HTTP response content type for this operation
5859
ContentType string
60+
// OK
61+
SchemaStoreItem *shared.SchemaStoreItem
5962
// HTTP response status code for this operation
6063
StatusCode int
6164
// Raw HTTP response; suitable for custom response parsing
@@ -69,6 +72,13 @@ func (o *CreateSchemaStoreItemResponse) GetContentType() string {
6972
return o.ContentType
7073
}
7174

75+
func (o *CreateSchemaStoreItemResponse) GetSchemaStoreItem() *shared.SchemaStoreItem {
76+
if o == nil {
77+
return nil
78+
}
79+
return o.SchemaStoreItem
80+
}
81+
7282
func (o *CreateSchemaStoreItemResponse) GetStatusCode() int {
7383
if o == nil {
7484
return 0

schemastore.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,26 @@ func (s *SchemaStore) CreateSchemaStoreItem(ctx context.Context, request operati
189189

190190
switch {
191191
case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300:
192+
switch {
193+
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
194+
rawBody, err := utils.ConsumeRawBody(httpRes)
195+
if err != nil {
196+
return nil, err
197+
}
198+
199+
var out shared.SchemaStoreItem
200+
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
201+
return nil, err
202+
}
203+
204+
res.SchemaStoreItem = &out
205+
default:
206+
rawBody, err := utils.ConsumeRawBody(httpRes)
207+
if err != nil {
208+
return nil, err
209+
}
210+
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
211+
}
192212
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
193213
switch {
194214
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):

speakeasy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ func New(opts ...SDKOption) *Speakeasy {
189189
sdkConfiguration: sdkConfiguration{
190190
Language: "go",
191191
OpenAPIDocVersion: "0.4.0",
192-
SDKVersion: "3.25.0",
193-
GenVersion: "2.533.0",
194-
UserAgent: "speakeasy-sdk/go 3.25.0 2.533.0 0.4.0 github.com/speakeasy-api/speakeasy-client-sdk-go",
192+
SDKVersion: "3.25.1",
193+
GenVersion: "2.539.1",
194+
UserAgent: "speakeasy-sdk/go 3.25.1 2.539.1 0.4.0 github.com/speakeasy-api/speakeasy-client-sdk-go",
195195
Globals: globals.Globals{},
196196
Hooks: hooks.New(),
197197
},

0 commit comments

Comments
 (0)