File tree Expand file tree Collapse file tree 11 files changed +40
-42
lines changed
modules/openapi-generator/src/main/resources/typescript-angular
typescript-angular-v2/npm
typescript-angular-v4.3/npm/api
typescript-angular-v6-not-provided-in-root/builds
typescript-angular-v6-provided-in-root/builds
typescript-angular-v7-not-provided-in-root/builds
typescript-angular-v7-provided-in-root/builds Expand file tree Collapse file tree 11 files changed +40
-42
lines changed Original file line number Diff line number Diff line change @@ -296,17 +296,17 @@ export class {{classname}} {
296
296
if ({ {paramName} }) {
297
297
{{#isCollectionFormatMulti} }
298
298
{ {paramName} }.forEach((element) => {
299
- {{#useHttpClient} }formParams = { {/useHttpClient} }formParams.append('{ {baseName} }', <any >element){ {#useHttpClient} } || formParams{ {/useHttpClient} };
299
+ {{#useHttpClient} }formParams = { {/useHttpClient} }formParams.append('{ {baseName} }', <any >element){ {#useHttpClient} } as any || formParams{ {/useHttpClient} };
300
300
})
301
301
{ {/isCollectionFormatMulti} }
302
302
{ {^isCollectionFormatMulti} }
303
- { {#useHttpClient} }formParams = { {/useHttpClient} }formParams.append('{ {baseName} }', { {paramName} }.join(COLLECTION_FORMATS['{ {collectionFormat} }'])){ {#useHttpClient} } || formParams{ {/useHttpClient} };
303
+ { {#useHttpClient} }formParams = { {/useHttpClient} }formParams.append('{ {baseName} }', { {paramName} }.join(COLLECTION_FORMATS['{ {collectionFormat} }'])){ {#useHttpClient} } as any || formParams{ {/useHttpClient} };
304
304
{ {/isCollectionFormatMulti} }
305
305
}
306
306
{ {/isListContainer} }
307
307
{ {^isListContainer} }
308
308
if ({ {paramName} } !== undefined) {
309
- {{#useHttpClient} }formParams = { {/useHttpClient} }formParams.append('{ {baseName} }', <any >{ {paramName} }){ {#useHttpClient} } || formParams{ {/useHttpClient} };
309
+ {{#useHttpClient} }formParams = { {/useHttpClient} }formParams.append('{ {baseName} }', <any >{ {paramName} }){ {#useHttpClient} } as any || formParams{ {/useHttpClient} };
310
310
}
311
311
{ {/isListContainer} }
312
312
{ {/formParams} }
Original file line number Diff line number Diff line change 8
8
export class CustomQueryEncoderHelper extends QueryEncoder {
9
9
encodeKey ( k : string ) : string {
10
10
k = super . encodeKey ( k ) ;
11
- return k . replace ( / \+ / gi, '%2B' )
12
- . replace ( / % 5 B / , "[" ) . replace ( / % 5 D / , "]" )
13
- ;
11
+ return k . replace ( / \+ / gi, '%2B' ) ;
14
12
}
15
13
encodeValue ( v : string ) : string {
16
14
v = super . encodeValue ( v ) ;
Original file line number Diff line number Diff line change @@ -425,10 +425,10 @@ export class PetService {
425
425
}
426
426
427
427
if ( name !== undefined ) {
428
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
428
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
429
429
}
430
430
if ( status !== undefined ) {
431
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
431
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
432
432
}
433
433
434
434
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -498,10 +498,10 @@ export class PetService {
498
498
}
499
499
500
500
if ( additionalMetadata !== undefined ) {
501
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
501
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
502
502
}
503
503
if ( file !== undefined ) {
504
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
504
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
505
505
}
506
506
507
507
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -425,10 +425,10 @@ export class PetService {
425
425
}
426
426
427
427
if ( name !== undefined ) {
428
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
428
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
429
429
}
430
430
if ( status !== undefined ) {
431
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
431
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
432
432
}
433
433
434
434
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -498,10 +498,10 @@ export class PetService {
498
498
}
499
499
500
500
if ( additionalMetadata !== undefined ) {
501
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
501
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
502
502
}
503
503
if ( file !== undefined ) {
504
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
504
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
505
505
}
506
506
507
507
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -425,10 +425,10 @@ export class PetService {
425
425
}
426
426
427
427
if ( name !== undefined ) {
428
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
428
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
429
429
}
430
430
if ( status !== undefined ) {
431
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
431
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
432
432
}
433
433
434
434
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -498,10 +498,10 @@ export class PetService {
498
498
}
499
499
500
500
if ( additionalMetadata !== undefined ) {
501
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
501
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
502
502
}
503
503
if ( file !== undefined ) {
504
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
504
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
505
505
}
506
506
507
507
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -427,10 +427,10 @@ export class PetService {
427
427
}
428
428
429
429
if ( name !== undefined ) {
430
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
430
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
431
431
}
432
432
if ( status !== undefined ) {
433
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
433
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
434
434
}
435
435
436
436
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -500,10 +500,10 @@ export class PetService {
500
500
}
501
501
502
502
if ( additionalMetadata !== undefined ) {
503
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
503
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
504
504
}
505
505
if ( file !== undefined ) {
506
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
506
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
507
507
}
508
508
509
509
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -427,10 +427,10 @@ export class PetService {
427
427
}
428
428
429
429
if ( name !== undefined ) {
430
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
430
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
431
431
}
432
432
if ( status !== undefined ) {
433
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
433
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
434
434
}
435
435
436
436
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -500,10 +500,10 @@ export class PetService {
500
500
}
501
501
502
502
if ( additionalMetadata !== undefined ) {
503
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
503
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
504
504
}
505
505
if ( file !== undefined ) {
506
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
506
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
507
507
}
508
508
509
509
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -425,10 +425,10 @@ export class PetService {
425
425
}
426
426
427
427
if ( name !== undefined ) {
428
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
428
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
429
429
}
430
430
if ( status !== undefined ) {
431
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
431
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
432
432
}
433
433
434
434
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -498,10 +498,10 @@ export class PetService {
498
498
}
499
499
500
500
if ( additionalMetadata !== undefined ) {
501
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
501
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
502
502
}
503
503
if ( file !== undefined ) {
504
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
504
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
505
505
}
506
506
507
507
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -425,10 +425,10 @@ export class PetService {
425
425
}
426
426
427
427
if ( name !== undefined ) {
428
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
428
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
429
429
}
430
430
if ( status !== undefined ) {
431
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
431
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
432
432
}
433
433
434
434
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -498,10 +498,10 @@ export class PetService {
498
498
}
499
499
500
500
if ( additionalMetadata !== undefined ) {
501
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
501
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
502
502
}
503
503
if ( file !== undefined ) {
504
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
504
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
505
505
}
506
506
507
507
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -427,10 +427,10 @@ export class PetService {
427
427
}
428
428
429
429
if ( name !== undefined ) {
430
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
430
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
431
431
}
432
432
if ( status !== undefined ) {
433
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
433
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
434
434
}
435
435
436
436
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -500,10 +500,10 @@ export class PetService {
500
500
}
501
501
502
502
if ( additionalMetadata !== undefined ) {
503
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
503
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
504
504
}
505
505
if ( file !== undefined ) {
506
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
506
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
507
507
}
508
508
509
509
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
Original file line number Diff line number Diff line change @@ -427,10 +427,10 @@ export class PetService {
427
427
}
428
428
429
429
if ( name !== undefined ) {
430
- formParams = formParams . append ( 'name' , < any > name ) || formParams ;
430
+ formParams = formParams . append ( 'name' , < any > name ) as any || formParams ;
431
431
}
432
432
if ( status !== undefined ) {
433
- formParams = formParams . append ( 'status' , < any > status ) || formParams ;
433
+ formParams = formParams . append ( 'status' , < any > status ) as any || formParams ;
434
434
}
435
435
436
436
return this . httpClient . post < any > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
@@ -500,10 +500,10 @@ export class PetService {
500
500
}
501
501
502
502
if ( additionalMetadata !== undefined ) {
503
- formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) || formParams ;
503
+ formParams = formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) as any || formParams ;
504
504
}
505
505
if ( file !== undefined ) {
506
- formParams = formParams . append ( 'file' , < any > file ) || formParams ;
506
+ formParams = formParams . append ( 'file' , < any > file ) as any || formParams ;
507
507
}
508
508
509
509
return this . httpClient . post < ApiResponse > ( `${ this . configuration . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } /uploadImage` ,
You can’t perform that action at this time.
0 commit comments