new(all): TRUE multicloud.
This commit is contained in:
parent
1f6cb6ed03
commit
a44ae4885b
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"openapi": "3.0.0",
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"version": "v3",
|
||||
"title": "Bot Connector - Direct Line API - v3.0",
|
||||
|
|
|
@ -68,6 +68,7 @@ export class GBUtil {
|
|||
}
|
||||
|
||||
public static async getDirectLineClient(min) {
|
||||
|
||||
let config = {
|
||||
spec: JSON.parse(Fs.readFileSync('directline-3.0.json', 'utf8')),
|
||||
requestInterceptor: req => {
|
||||
|
@ -79,6 +80,7 @@ export class GBUtil {
|
|||
config['spec'].servers = [{ url: `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages` }];
|
||||
config['spec'].openapi = '3.0.0';
|
||||
delete config['spec'].host;
|
||||
delete config['spec'].swagger;
|
||||
}
|
||||
|
||||
return await new SwaggerClient(config);
|
||||
|
|
Loading…
Add table
Reference in a new issue