new(all): TRUE multicloud.

This commit is contained in:
Rodrigo Rodriguez 2024-08-20 16:18:01 -03:00
parent 1f6cb6ed03
commit a44ae4885b
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,5 @@
{ {
"openapi": "3.0.0", "swagger": "2.0",
"info": { "info": {
"version": "v3", "version": "v3",
"title": "Bot Connector - Direct Line API - v3.0", "title": "Bot Connector - Direct Line API - v3.0",

View file

@ -68,6 +68,7 @@ export class GBUtil {
} }
public static async getDirectLineClient(min) { public static async getDirectLineClient(min) {
let config = { let config = {
spec: JSON.parse(Fs.readFileSync('directline-3.0.json', 'utf8')), spec: JSON.parse(Fs.readFileSync('directline-3.0.json', 'utf8')),
requestInterceptor: req => { requestInterceptor: req => {
@ -79,6 +80,7 @@ export class GBUtil {
config['spec'].servers = [{ url: `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages` }]; config['spec'].servers = [{ url: `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages` }];
config['spec'].openapi = '3.0.0'; config['spec'].openapi = '3.0.0';
delete config['spec'].host; delete config['spec'].host;
delete config['spec'].swagger;
} }
return await new SwaggerClient(config); return await new SwaggerClient(config);