Skip to content

Commit

Permalink
Merge pull request #29 from ryan-timothy-albert/speakeasy-sdk-regen-1…
Browse files Browse the repository at this point in the history
…718916111

chore: 🐝 Update SDK - Generate All FIRST-TARGET
  • Loading branch information
ryan-timothy-albert authored Jun 20, 2024
2 parents ad7d332 + 8335ff5 commit fda8fbe
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 34 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.311.0
sources:
petstore:
sourceNamespace: petstore
sourceRevisionDigest: sha256:033231f81c8dea538385702890c18d4eba541e40c4c9361190502b3cbc48e08e
sourceBlobDigest: sha256:a920e56920687de800d5493fc1e12a6463a9374e14fd59f4da44149b162780b1
sourceRevisionDigest: sha256:2eb2094bcf935d1b86d06268ec14ada603b2f7de8ebd215b8c660f5c9e34fff4
sourceBlobDigest: sha256:ba9cdfa3fcbd2b7e521ae648f1c0f07ff5468842f9b4d2fb18e718af1d1cc95e
tags:
- latest
- main
targets:
first-target:
source: petstore
sourceNamespace: petstore
sourceRevisionDigest: sha256:033231f81c8dea538385702890c18d4eba541e40c4c9361190502b3cbc48e08e
sourceBlobDigest: sha256:a920e56920687de800d5493fc1e12a6463a9374e14fd59f4da44149b162780b1
sourceRevisionDigest: sha256:2eb2094bcf935d1b86d06268ec14ada603b2f7de8ebd215b8c660f5c9e34fff4
sourceBlobDigest: sha256:ba9cdfa3fcbd2b7e521ae648f1c0f07ff5468842f9b4d2fb18e718af1d1cc95e
outLocation: go
second-target:
source: petstore
Expand Down
4 changes: 2 additions & 2 deletions go/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ management:
docVersion: 1.0.0
speakeasyVersion: 1.311.0
generationVersion: 2.347.8
releaseVersion: 0.0.9
configChecksum: 873172e99fdd336d2229220ce3a24291
releaseVersion: 2.0.0-alpha.1
configChecksum: 59085c9b2d0bb46523048904bc76213b
repoURL: https://github.com/ryan-timothy-albert/multi-sdk-sample.git
repoSubDirectory: go
installationURL: https://github.com/ryan-timothy-albert/multi-sdk-sample/go
Expand Down
2 changes: 1 addition & 1 deletion go/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.0.9
version: 2.0.0-alpha.1
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
10 changes: 5 additions & 5 deletions go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ package main
import (
"context"
"log"
"openapi"
openapi "openapi/v2"
)

func main() {
Expand Down Expand Up @@ -82,8 +82,8 @@ import (
"context"
"errors"
"log"
"openapi"
"openapi/models/sdkerrors"
openapi "openapi/v2"
"openapi/v2/models/sdkerrors"
)

func main() {
Expand Down Expand Up @@ -123,7 +123,7 @@ package main
import (
"context"
"log"
"openapi"
openapi "openapi/v2"
)

func main() {
Expand Down Expand Up @@ -153,7 +153,7 @@ package main
import (
"context"
"log"
"openapi"
openapi "openapi/v2"
)

func main() {
Expand Down
12 changes: 11 additions & 1 deletion go/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@ Based on:
### Generated
- [go v0.0.9] go
### Releases
- [Go v0.0.9] https://github.com/ryan-timothy-albert/multi-sdk-sample/releases/tag/go/v0.0.9 - go
- [Go v0.0.9] https://github.com/ryan-timothy-albert/multi-sdk-sample/releases/tag/go/v0.0.9 - go

## 2024-06-20 20:41:48
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.311.0 (2.347.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v2.0.0-alpha.1] go
### Releases
- [Go v2.0.0-alpha.1] https://github.com/ryan-timothy-albert/multi-sdk-sample/releases/tag/go/v2.0.0-alpha.1 - go
2 changes: 1 addition & 1 deletion go/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package main
import (
"context"
"log"
"openapi"
openapi "openapi/v2"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions go/docs/sdks/pets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ List all pets
package main

import(
"openapi"
openapi "openapi/v2"
"context"
"log"
)
Expand Down Expand Up @@ -61,8 +61,8 @@ Create a pet
package main

import(
"openapi"
"openapi/models/components"
openapi "openapi/v2"
"openapi/v2/models/components"
"context"
"log"
)
Expand Down Expand Up @@ -109,7 +109,7 @@ Info for a specific pet
package main

import(
"openapi"
openapi "openapi/v2"
"context"
"log"
)
Expand Down
2 changes: 1 addition & 1 deletion go/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module openapi
module openapi/v2

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion go/internal/utils/form.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/ericlagergren/decimal"

"openapi/types"
"openapi/v2/types"
)

func populateForm(paramName string, explode bool, objType reflect.Type, objValue reflect.Value, delimiter string, getFieldName func(reflect.StructField) string) url.Values {
Expand Down
2 changes: 1 addition & 1 deletion go/internal/utils/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"
"unsafe"

"openapi/types"
"openapi/v2/types"

"github.com/ericlagergren/decimal"
)
Expand Down
2 changes: 1 addition & 1 deletion go/internal/utils/pathparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/ericlagergren/decimal"

"openapi/types"
"openapi/v2/types"
)

func GenerateURL(_ context.Context, serverURL, path string, pathParams interface{}, globals interface{}) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion go/models/operations/createpets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package operations

import (
"openapi/models/components"
"openapi/v2/models/components"
)

type CreatePetsResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion go/models/operations/listpets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package operations

import (
"openapi/models/components"
"openapi/v2/models/components"
)

type ListPetsRequest struct {
Expand Down
2 changes: 1 addition & 1 deletion go/models/operations/showpetbyid.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package operations

import (
"openapi/models/components"
"openapi/v2/models/components"
)

type ShowPetByIDRequest struct {
Expand Down
10 changes: 5 additions & 5 deletions go/pets.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"io"
"net/http"
"net/url"
"openapi/internal/hooks"
"openapi/internal/utils"
"openapi/models/components"
"openapi/models/operations"
"openapi/models/sdkerrors"
"openapi/v2/internal/hooks"
"openapi/v2/internal/utils"
"openapi/v2/models/components"
"openapi/v2/models/operations"
"openapi/v2/models/sdkerrors"
)

type Pets struct {
Expand Down
8 changes: 4 additions & 4 deletions go/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package openapi
import (
"fmt"
"net/http"
"openapi/internal/hooks"
"openapi/internal/utils"
"openapi/v2/internal/hooks"
"openapi/v2/internal/utils"
"time"
)

Expand Down Expand Up @@ -116,9 +116,9 @@ func New(opts ...SDKOption) *SDK {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "1.0.0",
SDKVersion: "0.0.9",
SDKVersion: "2.0.0-alpha.1",
GenVersion: "2.347.8",
UserAgent: "speakeasy-sdk/go 0.0.9 2.347.8 1.0.0 openapi",
UserAgent: "speakeasy-sdk/go 2.0.0-alpha.1 2.347.8 1.0.0 openapi",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit fda8fbe

Please sign in to comment.