diff --git a/clients/entity-mapping-client/package.json b/clients/entity-mapping-client/package.json index 31648480..f09b9da3 100644 --- a/clients/entity-mapping-client/package.json +++ b/clients/entity-mapping-client/package.json @@ -25,7 +25,7 @@ "test": "jest", "typescript": "tsc", "bundle-definition": "webpack", - "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity-mapping-api.yaml", + "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity-mapping-api.yaml '' --include-ext", "typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts", "build": "tsc && npm run bundle-definition", "build:watch": "npm run build && tsc -w", diff --git a/clients/entity-mapping-client/src/openapi-runtime.json b/clients/entity-mapping-client/src/openapi-runtime.json index b355e178..085402c6 100644 --- a/clients/entity-mapping-client/src/openapi-runtime.json +++ b/clients/entity-mapping-client/src/openapi-runtime.json @@ -178,5 +178,10 @@ } } }, - "components": {} + "components": {}, + "servers": [ + { + "url": "https://entity-mapping.sls.epilot.io" + } + ] } diff --git a/clients/entity-mapping-client/src/openapi.json b/clients/entity-mapping-client/src/openapi.json index e3030e20..c230b91c 100644 --- a/clients/entity-mapping-client/src/openapi.json +++ b/clients/entity-mapping-client/src/openapi.json @@ -1602,5 +1602,13 @@ ] } } - } + }, + "servers": [ + { + "url": "https://entity-mapping.sls.epilot.io" + }, + { + "url": "https://entity-mapping.sls.epilot.io" + } + ] } diff --git a/scripts/update-openapi.js b/scripts/update-openapi.js index 35c6b771..a350578a 100644 --- a/scripts/update-openapi.js +++ b/scripts/update-openapi.js @@ -10,6 +10,7 @@ const { execSync } = require('child_process'); const defaultSrc = process.argv[2]; const overrideSrc = process.argv[3]; +const includeEXT = process.argv.includes('--include-ext'); const sourceFile = overrideSrc || defaultSrc; const OPENAPICMD = 'npx openapicmd'; @@ -28,7 +29,7 @@ execSync( [ OPENAPICMD, 'read', - '--exclude-ext x-internal', + includeEXT ? '' : '--exclude-ext x-internal', `--json ${sourceFile}`, serverURL ? `--server ${serverURL}` : '', '>',