Skip to content

Commit 8ead4b6

Browse files
authored
[typescript-angular] fix: correctly serialize query params objects (#20850)
fixes #20799
1 parent 0e34d39 commit 8ead4b6

File tree

19 files changed

+19
-19
lines changed

19 files changed

+19
-19
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

samples/client/petstore/typescript-angular-v12-oneOf/builds/default/api.base.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

samples/client/petstore/typescript-angular-v12-provided-in-any/builds/default/api.base.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/api.base.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

samples/client/petstore/typescript-angular-v13-oneOf/builds/default/api.base.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

samples/client/petstore/typescript-angular-v13-provided-in-any/builds/default/api.base.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class BaseService {
3131
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
3232
// If the value is an object (but not a Date), recursively add its keys.
3333
if (typeof value === 'object' && !(value instanceof Date)) {
34-
return this.addToHttpParamsRecursive(httpParams, value, key);
34+
return this.addToHttpParamsRecursive(httpParams, value);
3535
}
3636
return this.addToHttpParamsRecursive(httpParams, value, key);
3737
}

0 commit comments

Comments
 (0)