From a44ae4885b490c1b2e75b874681a2fd222cff6eb Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 20 Aug 2024 16:18:01 -0300 Subject: [PATCH] new(all): TRUE multicloud. --- directline-3.0.json | 2 +- src/util.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/directline-3.0.json b/directline-3.0.json index da4a4933..39755e98 100644 --- a/directline-3.0.json +++ b/directline-3.0.json @@ -1,5 +1,5 @@ { - "openapi": "3.0.0", + "swagger": "2.0", "info": { "version": "v3", "title": "Bot Connector - Direct Line API - v3.0", diff --git a/src/util.ts b/src/util.ts index e7007b0d..ebdc46c8 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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);