forked from loafle/openapi-generator-original
Regen samples
This commit is contained in:
parent
86daa2b994
commit
f8a42315c0
@ -1,10 +1,11 @@
|
|||||||
import {RequestContext} from '../http/http';
|
import {RequestContext} from '../http/http';
|
||||||
// typings for btoa are incorrect
|
// typings for btoa are incorrect
|
||||||
|
{{#platforms}}
|
||||||
{{#node}}
|
{{#node}}
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
import * as btoa from "btoa";
|
import * as btoa from "btoa";
|
||||||
{{/node}}
|
{{/node}}
|
||||||
|
{{/platforms}}
|
||||||
/**
|
/**
|
||||||
* Base class for all authentication schemes.
|
* Base class for all authentication schemes.
|
||||||
*
|
*
|
||||||
|
@ -18,34 +18,32 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
{{#frameworks}}
|
{{#frameworks}}
|
||||||
{{#fetch-api}}
|
{{#fetch-api}}
|
||||||
{{#platforms}}
|
{{#platforms}}
|
||||||
{{#node}}
|
{{#node}}
|
||||||
"node-fetch": "^2.6.0",
|
"node-fetch": "^2.6.0",
|
||||||
"@types/node-fetch": "^2.5.7",
|
"@types/node-fetch": "^2.5.7",
|
||||||
{{/node}}
|
{{/node}}
|
||||||
{{#browser}}
|
{{#browser}}
|
||||||
"whatwg-fetch": "^3.0.0",
|
"whatwg-fetch": "^3.0.0",
|
||||||
{{/browser}}
|
{{/browser}}
|
||||||
{{/platforms}}
|
{{/platforms}}
|
||||||
{{/fetch-api}}
|
{{/fetch-api}}
|
||||||
{{#jquery}}
|
{{#jquery}}
|
||||||
"@types/jquery": "^3.3.29",
|
"@types/jquery": "^3.3.29",
|
||||||
"jquery": "^3.4.1",
|
"jquery": "^3.4.1",
|
||||||
{{/jquery}}
|
{{/jquery}}
|
||||||
{{/frameworks}}
|
{{/frameworks}}
|
||||||
{{#platforms}}
|
{{#platforms}}
|
||||||
{{#node}}
|
{{#node}}
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
"form-data": "^2.5.0",
|
"form-data": "^2.5.0",
|
||||||
{{/node}}
|
"btoa": "^1.2.1",
|
||||||
|
{{/node}}
|
||||||
{{/platforms}}
|
{{/platforms}}
|
||||||
{{#useRxJS}}
|
{{#useRxJS}}
|
||||||
"rxjs": "^6.4.0",
|
"rxjs": "^6.4.0",
|
||||||
{{/useRxJS}}
|
{{/useRxJS}}
|
||||||
{{#node}}
|
|
||||||
"btoa": "^1.2.1",
|
|
||||||
{{/node}}
|
|
||||||
"es6-promise": "^4.2.4",
|
"es6-promise": "^4.2.4",
|
||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,6 @@ import {RequestContext} from '../http/http';
|
|||||||
// typings for btoa are incorrect
|
// typings for btoa are incorrect
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
import * as btoa from "btoa";
|
import * as btoa from "btoa";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for all authentication schemes.
|
* Base class for all authentication schemes.
|
||||||
*
|
*
|
||||||
@ -30,21 +29,6 @@ export abstract class SecurityAuthentication {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Applies no authentication.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export class NoAuthentication extends SecurityAuthentication {
|
|
||||||
|
|
||||||
public constructor() {
|
|
||||||
super("_no_auth");
|
|
||||||
}
|
|
||||||
|
|
||||||
public applySecurityAuthentication(_context: RequestContext) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies an api key to the request context.
|
* Applies an api key to the request context.
|
||||||
*
|
*
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import {RequestContext} from '../http/http';
|
import {RequestContext} from '../http/http';
|
||||||
// typings for btoa are incorrect
|
// typings for btoa are incorrect
|
||||||
//@ts-ignore
|
|
||||||
import * as btoa from "btoa";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for all authentication schemes.
|
* Base class for all authentication schemes.
|
||||||
*
|
*
|
||||||
@ -30,21 +27,6 @@ export abstract class SecurityAuthentication {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Applies no authentication.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export class NoAuthentication extends SecurityAuthentication {
|
|
||||||
|
|
||||||
public constructor() {
|
|
||||||
super("_no_auth");
|
|
||||||
}
|
|
||||||
|
|
||||||
public applySecurityAuthentication(_context: RequestContext) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies an api key to the request context.
|
* Applies an api key to the request context.
|
||||||
*
|
*
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/jquery": "^3.3.29",
|
"@types/jquery": "^3.3.29",
|
||||||
"jquery": "^3.4.1",
|
"jquery": "^3.4.1",
|
||||||
"btoa": "^1.2.1",
|
|
||||||
"es6-promise": "^4.2.4",
|
"es6-promise": "^4.2.4",
|
||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user