File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
tests/api-resources/files Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 42
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-eab9713fd85da68b41e881dfd9cd71f654e8620132da2023bab7dd01e5f7852e .yml
3
- openapi_spec_hash : b5037b26fbe7360c6bfaf9947a65bb85
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-911102f2eaf3be4b34381f6ba089330bed099bb72eb93667ce2f6e72b5934c8c .yml
3
+ openapi_spec_hash : 637ad417a580137914441bd790b04cc2
4
4
config_hash : 70f9408b8d1dfbcf262a20d6eed50e1c
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export class Files extends APIResource {
175
175
* @example
176
176
* ```ts
177
177
* const response = await client.files.upload({
178
- * file: 'https://www.example.com/path/to-image.jpg ',
178
+ * file: 'file ',
179
179
* fileName: 'fileName',
180
180
* });
181
181
* ```
Original file line number Diff line number Diff line change @@ -153,10 +153,7 @@ describe('resource files', () => {
153
153
154
154
// Prism tests are disabled
155
155
test . skip ( 'upload: only required params' , async ( ) => {
156
- const responsePromise = client . files . upload ( {
157
- file : 'https://www.example.com/path/to-image.jpg' ,
158
- fileName : 'fileName' ,
159
- } ) ;
156
+ const responsePromise = client . files . upload ( { file : 'file' , fileName : 'fileName' } ) ;
160
157
const rawResponse = await responsePromise . asResponse ( ) ;
161
158
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
162
159
const response = await responsePromise ;
@@ -169,7 +166,7 @@ describe('resource files', () => {
169
166
// Prism tests are disabled
170
167
test . skip ( 'upload: required and optional params' , async ( ) => {
171
168
const response = await client . files . upload ( {
172
- file : 'https://www.example.com/path/to-image.jpg ' ,
169
+ file : 'file ' ,
173
170
fileName : 'fileName' ,
174
171
token : 'token' ,
175
172
checks : '"request.folder" : "marketing/"\n' ,
You can’t perform that action at this time.
0 commit comments