diff --git a/samples/client/petstore/typescript-node/api.ts b/samples/client/petstore/typescript-node/api.ts index a382508dc28..0b7089fdaae 100644 --- a/samples/client/petstore/typescript-node/api.ts +++ b/samples/client/petstore/typescript-node/api.ts @@ -121,8 +121,8 @@ export class UserApi { private basePath = '/v2'; public authentications = { 'default': new VoidAuth(), - 'api_key': new ApiKeyAuth('header', 'api_key'), - 'petstore_auth': new OAuth(), + 'api_key': new ApiKeyAuth('header', 'api_key'), + 'petstore_auth': new OAuth(), } constructor(url: string, basePath?: string); @@ -138,7 +138,6 @@ export class UserApi { } } - set apiKey(key: string) { this.authentications.api_key.apiKey = key; } @@ -532,8 +531,8 @@ export class PetApi { private basePath = '/v2'; public authentications = { 'default': new VoidAuth(), - 'api_key': new ApiKeyAuth('header', 'api_key'), - 'petstore_auth': new OAuth(), + 'api_key': new ApiKeyAuth('header', 'api_key'), + 'petstore_auth': new OAuth(), } constructor(url: string, basePath?: string); @@ -549,7 +548,6 @@ export class PetApi { } } - set apiKey(key: string) { this.authentications.api_key.apiKey = key; } @@ -985,8 +983,8 @@ export class StoreApi { private basePath = '/v2'; public authentications = { 'default': new VoidAuth(), - 'api_key': new ApiKeyAuth('header', 'api_key'), - 'petstore_auth': new OAuth(), + 'api_key': new ApiKeyAuth('header', 'api_key'), + 'petstore_auth': new OAuth(), } constructor(url: string, basePath?: string); @@ -1002,7 +1000,6 @@ export class StoreApi { } } - set apiKey(key: string) { this.authentications.api_key.apiKey = key; }