-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): OpenAPI spec update via Stainless API (#1690)
- Loading branch information
1 parent
3fdfb59
commit 805dd67
Showing
2 changed files
with
20 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ import ( | |
"github.com/cloudflare/cloudflare-go/v2/option" | ||
) | ||
|
||
func TestV1New(t *testing.T) { | ||
func TestV1NewWithOptionalParams(t *testing.T) { | ||
t.Skip("skipped: tests are disabled for the time being") | ||
baseURL := "http://localhost:4010" | ||
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { | ||
|
@@ -28,9 +28,12 @@ func TestV1New(t *testing.T) { | |
option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), | ||
option.WithAPIEmail("[email protected]"), | ||
) | ||
_, err := client.Images.V1.New(context.TODO(), images.V1NewParamsImagesImageUploadViaFile{ | ||
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), | ||
File: cloudflare.F[any](map[string]interface{}{}), | ||
_, err := client.Images.V1.New(context.TODO(), images.V1NewParams{ | ||
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), | ||
File: cloudflare.F[any](map[string]interface{}{}), | ||
Metadata: cloudflare.F[any](map[string]interface{}{}), | ||
RequireSignedURLs: cloudflare.F(true), | ||
URL: cloudflare.F("https://example.com/path/to/logo.png"), | ||
}) | ||
if err != nil { | ||
var apierr *cloudflare.Error | ||
|