forked from loafle/openapi-generator-original
add swagger codege ignore to ts node npm
This commit is contained in:
parent
3b4331a7ee
commit
1e80455d82
@ -2,12 +2,14 @@
|
|||||||
"name": "{{npmName}}",
|
"name": "{{npmName}}",
|
||||||
"version": "{{npmVersion}}",
|
"version": "{{npmVersion}}",
|
||||||
"description": "NodeJS client for {{npmName}}",
|
"description": "NodeJS client for {{npmName}}",
|
||||||
|
"repository": "{{gitUserId}}/{{gitRepoId}}",
|
||||||
"main": "api.js",
|
"main": "api.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"clean": "rm -Rf node_modules/ typings/ *.js",
|
||||||
"build": "typings install && tsc"
|
"build": "typings install && tsc"
|
||||||
},
|
},
|
||||||
"author": "Swagger Codegen Contributors",
|
"author": "Swagger Codegen Contributors",
|
||||||
"license": "MIT",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bluebird": "^3.3.5",
|
"bluebird": "^3.3.5",
|
||||||
"request": "^2.72.0"
|
"request": "^2.72.0"
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
tsconfig.json
|
||||||
|
package.json
|
@ -131,8 +131,8 @@ export class PetApi {
|
|||||||
|
|
||||||
protected authentications = {
|
protected authentications = {
|
||||||
'default': <Authentication>new VoidAuth(),
|
'default': <Authentication>new VoidAuth(),
|
||||||
'petstore_auth': new OAuth(),
|
|
||||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||||
|
'petstore_auth': new OAuth(),
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(basePath?: string);
|
constructor(basePath?: string);
|
||||||
@ -398,10 +398,10 @@ export class PetApi {
|
|||||||
json: true,
|
json: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.authentications.petstore_auth.applyToRequest(requestOptions);
|
|
||||||
|
|
||||||
this.authentications.api_key.applyToRequest(requestOptions);
|
this.authentications.api_key.applyToRequest(requestOptions);
|
||||||
|
|
||||||
|
this.authentications.petstore_auth.applyToRequest(requestOptions);
|
||||||
|
|
||||||
this.authentications.default.applyToRequest(requestOptions);
|
this.authentications.default.applyToRequest(requestOptions);
|
||||||
|
|
||||||
if (Object.keys(formParams).length) {
|
if (Object.keys(formParams).length) {
|
||||||
@ -610,8 +610,8 @@ export class StoreApi {
|
|||||||
|
|
||||||
protected authentications = {
|
protected authentications = {
|
||||||
'default': <Authentication>new VoidAuth(),
|
'default': <Authentication>new VoidAuth(),
|
||||||
'petstore_auth': new OAuth(),
|
|
||||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||||
|
'petstore_auth': new OAuth(),
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(basePath?: string);
|
constructor(basePath?: string);
|
||||||
@ -847,8 +847,8 @@ export class UserApi {
|
|||||||
|
|
||||||
protected authentications = {
|
protected authentications = {
|
||||||
'default': <Authentication>new VoidAuth(),
|
'default': <Authentication>new VoidAuth(),
|
||||||
'petstore_auth': new OAuth(),
|
|
||||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||||
|
'petstore_auth': new OAuth(),
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(basePath?: string);
|
constructor(basePath?: string);
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "@swagger/angular2-typescript-petstore",
|
"name": "@swagger/angular2-typescript-petstore",
|
||||||
"version": "0.0.1-SNAPSHOT.201605031634",
|
"version": "0.0.1-SNAPSHOT.201605191812",
|
||||||
"description": "NodeJS client for @swagger/angular2-typescript-petstore",
|
"description": "NodeJS client for @swagger/angular2-typescript-petstore",
|
||||||
|
"repository": "GIT_USER_ID/GIT_REPO_ID",
|
||||||
"main": "api.js",
|
"main": "api.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"clean": "rm -Rf node_modules/ typings/ *.js",
|
||||||
"build": "typings install && tsc",
|
"build": "typings install && tsc",
|
||||||
"test": "tsc && node client.js",
|
"test": "tsc && node client.js"
|
||||||
"clean": "rm -Rf node_modules/ typings/ *.js"
|
|
||||||
},
|
},
|
||||||
"author": "Swagger Codegen Contributors",
|
"author": "Swagger Codegen Contributors",
|
||||||
"license": "MIT",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bluebird": "^3.3.5",
|
"bluebird": "^3.3.5",
|
||||||
"request": "^2.72.0"
|
"request": "^2.72.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user