Skip to content

Commit 55b23b7

Browse files
committed
feat: dont use unions
Signed-off-by: QuentinN42 <quentin@lieumont.fr>
1 parent a33a31c commit 55b23b7

File tree

10 files changed

+25927
-2459
lines changed

10 files changed

+25927
-2459
lines changed

assets/public-api.json

Lines changed: 11697 additions & 1 deletion
Large diffs are not rendered by default.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/Escape-Technologies/cli
22

3-
go 1.22.0
3+
go 1.22.5
44

5-
toolchain go1.22.2
5+
toolchain go1.23.4
66

77
require (
88
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWo
1717
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
1818
github.com/getkin/kin-openapi v0.127.0 h1:Mghqi3Dhryf3F8vR370nN67pAERW+3a95vomb3MAREY=
1919
github.com/getkin/kin-openapi v0.127.0/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM=
20+
github.com/getkin/kin-openapi v0.129.0 h1:QGYTNcmyP5X0AtFQ2Dkou9DGBJsUETeLH9rFrJXZh30=
21+
github.com/getkin/kin-openapi v0.129.0/go.mod h1:gmWI+b/J45xqpyK5wJmRRZse5wefA5H0RDMK46kLUtI=
2022
github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ=
2123
github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY=
2224
github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE=

pkg/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/Escape-Technologies/cli/pkg/log"
1111
)
1212

13-
func NewAPIClient() (*Client, error) {
13+
func NewAPIClient() (*ClientWithResponses, error) {
1414
log.Trace("Initializing client")
1515
server := os.Getenv("ESCAPE_API_URL")
1616
if server == "" {
@@ -20,7 +20,7 @@ func NewAPIClient() (*Client, error) {
2020
if key == "" {
2121
return nil, fmt.Errorf("ESCAPE_API_KEY is not set")
2222
}
23-
return NewClient(
23+
return NewClientWithResponses(
2424
server,
2525
WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
2626
log.Debug("Sending request %s %s", req.Method, req.URL)

0 commit comments

Comments
 (0)