Skip to content

Commit 04bd1ec

Browse files
fix for 8760 (#8761)
1 parent 9c20050 commit 04bd1ec

5 files changed

Lines changed: 5 additions & 7 deletions

File tree

modules/openapi-generator/src/main/resources/typescript-nestjs/api.module.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { DynamicModule, HttpService, HttpModule, Module, Global } from '@nestjs/common';
22
import { Configuration } from './configuration';
3-
import { BASE_PATH } from './variables';
43

54
{{#apiInfo}}
65
{{#apis}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class {{classname}} {
9191
queryParameters['{{baseName}}'] = <any>{{paramName}}.toISOString();
9292
{{/isDateTime}}
9393
{{^isDateTime}}
94-
queryParameters['{{baseName}}'] <any>{{paramName}};
94+
queryParameters['{{baseName}}'] = <any>{{paramName}};
9595
{{/isDateTime}}
9696
}
9797
{{/isListContainer}}

samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/default/api.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { DynamicModule, HttpService, HttpModule, Module, Global } from '@nestjs/common';
22
import { Configuration } from './configuration';
3-
import { BASE_PATH } from './variables';
43

54
import { PetService } from './api/pet.service';
65
import { StoreService } from './api/store.service';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class PetService {
155155

156156
let queryParameters = {};
157157
if (status !== undefined && status !== null) {
158-
queryParameters['status'] <any>status;
158+
queryParameters['status'] = <any>status;
159159
}
160160

161161
let headers = this.defaultHeaders;
@@ -205,7 +205,7 @@ export class PetService {
205205

206206
let queryParameters = {};
207207
if (tags !== undefined && tags !== null) {
208-
queryParameters['tags'] <any>tags;
208+
queryParameters['tags'] = <any>tags;
209209
}
210210

211211
let headers = this.defaultHeaders;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ export class UserService {
271271

272272
let queryParameters = {};
273273
if (username !== undefined && username !== null) {
274-
queryParameters['username'] <any>username;
274+
queryParameters['username'] = <any>username;
275275
}
276276
if (password !== undefined && password !== null) {
277-
queryParameters['password'] <any>password;
277+
queryParameters['password'] = <any>password;
278278
}
279279

280280
let headers = this.defaultHeaders;

0 commit comments

Comments
 (0)