Skip to content

Commit e025fcd

Browse files
committed
fix transfer cache
1 parent caf5ac9 commit e025fcd

24 files changed

Lines changed: 130 additions & 10351 deletions

File tree

bin/configs/typescript-angular-v19-provided-in-root.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ templateDir: modules/openapi-generator/src/main/resources/typescript-angular
55
additionalProperties:
66
ngVersion: 19.0.0
77
supportsES6: true
8+
httpTransferCacheInOptions: false
89
enumNameMappings:
910
delivered: SHIPPED

modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export class {{classname}} extends BaseService {
302302
headers: localVarHeaders,
303303
observe: observe,
304304
{{#httpTransferCacheInOptions}}
305-
transferCache: localVarTransferCache,
305+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
306306
{{/httpTransferCacheInOptions}}
307307
reportProgress: reportProgress
308308
}

samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/api/pet.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class PetService extends BaseService {
7878
...(withCredentials ? { withCredentials } : {}),
7979
headers: localVarHeaders,
8080
observe: observe,
81-
transferCache: localVarTransferCache,
81+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
8282
reportProgress: reportProgress
8383
}
8484
);

samples/client/others/typescript-angular/builds/composed-schemas/api/pet.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class PetService extends BaseService {
7878
...(withCredentials ? { withCredentials } : {}),
7979
headers: localVarHeaders,
8080
observe: observe,
81-
transferCache: localVarTransferCache,
81+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
8282
reportProgress: reportProgress
8383
}
8484
);

samples/client/petstore/typescript-angular-v17-provided-in-root/builds/default/api/pet.service.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class PetService extends BaseService {
101101
...(withCredentials ? { withCredentials } : {}),
102102
headers: localVarHeaders,
103103
observe: observe,
104-
transferCache: localVarTransferCache,
104+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
105105
reportProgress: reportProgress
106106
}
107107
);
@@ -162,7 +162,7 @@ export class PetService extends BaseService {
162162
...(withCredentials ? { withCredentials } : {}),
163163
headers: localVarHeaders,
164164
observe: observe,
165-
transferCache: localVarTransferCache,
165+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
166166
reportProgress: reportProgress
167167
}
168168
);
@@ -228,7 +228,7 @@ export class PetService extends BaseService {
228228
...(withCredentials ? { withCredentials } : {}),
229229
headers: localVarHeaders,
230230
observe: observe,
231-
transferCache: localVarTransferCache,
231+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
232232
reportProgress: reportProgress
233233
}
234234
);
@@ -295,7 +295,7 @@ export class PetService extends BaseService {
295295
...(withCredentials ? { withCredentials } : {}),
296296
headers: localVarHeaders,
297297
observe: observe,
298-
transferCache: localVarTransferCache,
298+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
299299
reportProgress: reportProgress
300300
}
301301
);
@@ -354,7 +354,7 @@ export class PetService extends BaseService {
354354
...(withCredentials ? { withCredentials } : {}),
355355
headers: localVarHeaders,
356356
observe: observe,
357-
transferCache: localVarTransferCache,
357+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
358358
reportProgress: reportProgress
359359
}
360360
);
@@ -424,7 +424,7 @@ export class PetService extends BaseService {
424424
...(withCredentials ? { withCredentials } : {}),
425425
headers: localVarHeaders,
426426
observe: observe,
427-
transferCache: localVarTransferCache,
427+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
428428
reportProgress: reportProgress
429429
}
430430
);
@@ -506,7 +506,7 @@ export class PetService extends BaseService {
506506
...(withCredentials ? { withCredentials } : {}),
507507
headers: localVarHeaders,
508508
observe: observe,
509-
transferCache: localVarTransferCache,
509+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
510510
reportProgress: reportProgress
511511
}
512512
);
@@ -592,7 +592,7 @@ export class PetService extends BaseService {
592592
...(withCredentials ? { withCredentials } : {}),
593593
headers: localVarHeaders,
594594
observe: observe,
595-
transferCache: localVarTransferCache,
595+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
596596
reportProgress: reportProgress
597597
}
598598
);

samples/client/petstore/typescript-angular-v17-provided-in-root/builds/default/api/store.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class StoreService extends BaseService {
8383
...(withCredentials ? { withCredentials } : {}),
8484
headers: localVarHeaders,
8585
observe: observe,
86-
transferCache: localVarTransferCache,
86+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
8787
reportProgress: reportProgress
8888
}
8989
);
@@ -137,7 +137,7 @@ export class StoreService extends BaseService {
137137
...(withCredentials ? { withCredentials } : {}),
138138
headers: localVarHeaders,
139139
observe: observe,
140-
transferCache: localVarTransferCache,
140+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
141141
reportProgress: reportProgress
142142
}
143143
);
@@ -193,7 +193,7 @@ export class StoreService extends BaseService {
193193
...(withCredentials ? { withCredentials } : {}),
194194
headers: localVarHeaders,
195195
observe: observe,
196-
transferCache: localVarTransferCache,
196+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
197197
reportProgress: reportProgress
198198
}
199199
);
@@ -259,7 +259,7 @@ export class StoreService extends BaseService {
259259
...(withCredentials ? { withCredentials } : {}),
260260
headers: localVarHeaders,
261261
observe: observe,
262-
transferCache: localVarTransferCache,
262+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
263263
reportProgress: reportProgress
264264
}
265265
);

samples/client/petstore/typescript-angular-v17-provided-in-root/builds/default/api/user.service.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class UserService extends BaseService {
9696
...(withCredentials ? { withCredentials } : {}),
9797
headers: localVarHeaders,
9898
observe: observe,
99-
transferCache: localVarTransferCache,
99+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
100100
reportProgress: reportProgress
101101
}
102102
);
@@ -163,7 +163,7 @@ export class UserService extends BaseService {
163163
...(withCredentials ? { withCredentials } : {}),
164164
headers: localVarHeaders,
165165
observe: observe,
166-
transferCache: localVarTransferCache,
166+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
167167
reportProgress: reportProgress
168168
}
169169
);
@@ -230,7 +230,7 @@ export class UserService extends BaseService {
230230
...(withCredentials ? { withCredentials } : {}),
231231
headers: localVarHeaders,
232232
observe: observe,
233-
transferCache: localVarTransferCache,
233+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
234234
reportProgress: reportProgress
235235
}
236236
);
@@ -287,7 +287,7 @@ export class UserService extends BaseService {
287287
...(withCredentials ? { withCredentials } : {}),
288288
headers: localVarHeaders,
289289
observe: observe,
290-
transferCache: localVarTransferCache,
290+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
291291
reportProgress: reportProgress
292292
}
293293
);
@@ -343,7 +343,7 @@ export class UserService extends BaseService {
343343
...(withCredentials ? { withCredentials } : {}),
344344
headers: localVarHeaders,
345345
observe: observe,
346-
transferCache: localVarTransferCache,
346+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
347347
reportProgress: reportProgress
348348
}
349349
);
@@ -410,7 +410,7 @@ export class UserService extends BaseService {
410410
...(withCredentials ? { withCredentials } : {}),
411411
headers: localVarHeaders,
412412
observe: observe,
413-
transferCache: localVarTransferCache,
413+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
414414
reportProgress: reportProgress
415415
}
416416
);
@@ -463,7 +463,7 @@ export class UserService extends BaseService {
463463
...(withCredentials ? { withCredentials } : {}),
464464
headers: localVarHeaders,
465465
observe: observe,
466-
transferCache: localVarTransferCache,
466+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
467467
reportProgress: reportProgress
468468
}
469469
);
@@ -534,7 +534,7 @@ export class UserService extends BaseService {
534534
...(withCredentials ? { withCredentials } : {}),
535535
headers: localVarHeaders,
536536
observe: observe,
537-
transferCache: localVarTransferCache,
537+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
538538
reportProgress: reportProgress
539539
}
540540
);

samples/client/petstore/typescript-angular-v18-provided-in-root/builds/default/api/pet.service.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class PetService extends BaseService {
101101
...(withCredentials ? { withCredentials } : {}),
102102
headers: localVarHeaders,
103103
observe: observe,
104-
transferCache: localVarTransferCache,
104+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
105105
reportProgress: reportProgress
106106
}
107107
);
@@ -162,7 +162,7 @@ export class PetService extends BaseService {
162162
...(withCredentials ? { withCredentials } : {}),
163163
headers: localVarHeaders,
164164
observe: observe,
165-
transferCache: localVarTransferCache,
165+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
166166
reportProgress: reportProgress
167167
}
168168
);
@@ -228,7 +228,7 @@ export class PetService extends BaseService {
228228
...(withCredentials ? { withCredentials } : {}),
229229
headers: localVarHeaders,
230230
observe: observe,
231-
transferCache: localVarTransferCache,
231+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
232232
reportProgress: reportProgress
233233
}
234234
);
@@ -295,7 +295,7 @@ export class PetService extends BaseService {
295295
...(withCredentials ? { withCredentials } : {}),
296296
headers: localVarHeaders,
297297
observe: observe,
298-
transferCache: localVarTransferCache,
298+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
299299
reportProgress: reportProgress
300300
}
301301
);
@@ -354,7 +354,7 @@ export class PetService extends BaseService {
354354
...(withCredentials ? { withCredentials } : {}),
355355
headers: localVarHeaders,
356356
observe: observe,
357-
transferCache: localVarTransferCache,
357+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
358358
reportProgress: reportProgress
359359
}
360360
);
@@ -424,7 +424,7 @@ export class PetService extends BaseService {
424424
...(withCredentials ? { withCredentials } : {}),
425425
headers: localVarHeaders,
426426
observe: observe,
427-
transferCache: localVarTransferCache,
427+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
428428
reportProgress: reportProgress
429429
}
430430
);
@@ -506,7 +506,7 @@ export class PetService extends BaseService {
506506
...(withCredentials ? { withCredentials } : {}),
507507
headers: localVarHeaders,
508508
observe: observe,
509-
transferCache: localVarTransferCache,
509+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
510510
reportProgress: reportProgress
511511
}
512512
);
@@ -592,7 +592,7 @@ export class PetService extends BaseService {
592592
...(withCredentials ? { withCredentials } : {}),
593593
headers: localVarHeaders,
594594
observe: observe,
595-
transferCache: localVarTransferCache,
595+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
596596
reportProgress: reportProgress
597597
}
598598
);

samples/client/petstore/typescript-angular-v18-provided-in-root/builds/default/api/store.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class StoreService extends BaseService {
8383
...(withCredentials ? { withCredentials } : {}),
8484
headers: localVarHeaders,
8585
observe: observe,
86-
transferCache: localVarTransferCache,
86+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
8787
reportProgress: reportProgress
8888
}
8989
);
@@ -137,7 +137,7 @@ export class StoreService extends BaseService {
137137
...(withCredentials ? { withCredentials } : {}),
138138
headers: localVarHeaders,
139139
observe: observe,
140-
transferCache: localVarTransferCache,
140+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
141141
reportProgress: reportProgress
142142
}
143143
);
@@ -193,7 +193,7 @@ export class StoreService extends BaseService {
193193
...(withCredentials ? { withCredentials } : {}),
194194
headers: localVarHeaders,
195195
observe: observe,
196-
transferCache: localVarTransferCache,
196+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
197197
reportProgress: reportProgress
198198
}
199199
);
@@ -259,7 +259,7 @@ export class StoreService extends BaseService {
259259
...(withCredentials ? { withCredentials } : {}),
260260
headers: localVarHeaders,
261261
observe: observe,
262-
transferCache: localVarTransferCache,
262+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
263263
reportProgress: reportProgress
264264
}
265265
);

samples/client/petstore/typescript-angular-v18-provided-in-root/builds/default/api/user.service.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class UserService extends BaseService {
9696
...(withCredentials ? { withCredentials } : {}),
9797
headers: localVarHeaders,
9898
observe: observe,
99-
transferCache: localVarTransferCache,
99+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
100100
reportProgress: reportProgress
101101
}
102102
);
@@ -163,7 +163,7 @@ export class UserService extends BaseService {
163163
...(withCredentials ? { withCredentials } : {}),
164164
headers: localVarHeaders,
165165
observe: observe,
166-
transferCache: localVarTransferCache,
166+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
167167
reportProgress: reportProgress
168168
}
169169
);
@@ -230,7 +230,7 @@ export class UserService extends BaseService {
230230
...(withCredentials ? { withCredentials } : {}),
231231
headers: localVarHeaders,
232232
observe: observe,
233-
transferCache: localVarTransferCache,
233+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
234234
reportProgress: reportProgress
235235
}
236236
);
@@ -287,7 +287,7 @@ export class UserService extends BaseService {
287287
...(withCredentials ? { withCredentials } : {}),
288288
headers: localVarHeaders,
289289
observe: observe,
290-
transferCache: localVarTransferCache,
290+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
291291
reportProgress: reportProgress
292292
}
293293
);
@@ -343,7 +343,7 @@ export class UserService extends BaseService {
343343
...(withCredentials ? { withCredentials } : {}),
344344
headers: localVarHeaders,
345345
observe: observe,
346-
transferCache: localVarTransferCache,
346+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
347347
reportProgress: reportProgress
348348
}
349349
);
@@ -410,7 +410,7 @@ export class UserService extends BaseService {
410410
...(withCredentials ? { withCredentials } : {}),
411411
headers: localVarHeaders,
412412
observe: observe,
413-
transferCache: localVarTransferCache,
413+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
414414
reportProgress: reportProgress
415415
}
416416
);
@@ -463,7 +463,7 @@ export class UserService extends BaseService {
463463
...(withCredentials ? { withCredentials } : {}),
464464
headers: localVarHeaders,
465465
observe: observe,
466-
transferCache: localVarTransferCache,
466+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
467467
reportProgress: reportProgress
468468
}
469469
);
@@ -534,7 +534,7 @@ export class UserService extends BaseService {
534534
...(withCredentials ? { withCredentials } : {}),
535535
headers: localVarHeaders,
536536
observe: observe,
537-
transferCache: localVarTransferCache,
537+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
538538
reportProgress: reportProgress
539539
}
540540
);

0 commit comments

Comments
 (0)