@eventcatalog/generator-openapi 7.1.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5876,9 +5876,9 @@ var require_src = __commonJS({
5876
5876
  }
5877
5877
  });
5878
5878
 
5879
- // ../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/helpers.js
5879
+ // ../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js
5880
5880
  var require_helpers = __commonJS({
5881
- "../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/helpers.js"(exports) {
5881
+ "../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js"(exports) {
5882
5882
  "use strict";
5883
5883
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k, k2) {
5884
5884
  if (k2 === void 0) k2 = k;
@@ -5946,9 +5946,9 @@ var require_helpers = __commonJS({
5946
5946
  }
5947
5947
  });
5948
5948
 
5949
- // ../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/index.js
5949
+ // ../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/index.js
5950
5950
  var require_dist = __commonJS({
5951
- "../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/index.js"(exports) {
5951
+ "../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/index.js"(exports) {
5952
5952
  "use strict";
5953
5953
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k, k2) {
5954
5954
  if (k2 === void 0) k2 = k;
@@ -6044,7 +6044,7 @@ var require_dist = __commonJS({
6044
6044
  // In order to properly update the socket pool, we need to call `getName()` on
6045
6045
  // the core `https.Agent` if it is a secureEndpoint.
6046
6046
  getName(options) {
6047
- const secureEndpoint = typeof options.secureEndpoint === "boolean" ? options.secureEndpoint : this.isSecureEndpoint(options);
6047
+ const secureEndpoint = this.isSecureEndpoint(options);
6048
6048
  if (secureEndpoint) {
6049
6049
  return https_1.Agent.prototype.getName.call(this, options);
6050
6050
  }
@@ -6639,7 +6639,7 @@ var getSummary = (document2) => {
6639
6639
  const summary = document2.info.description ? document2.info.description : "";
6640
6640
  return summary && summary.length < 150 ? summary : "";
6641
6641
  };
6642
- var buildService = (serviceOptions, document2) => {
6642
+ var buildService = (serviceOptions, document2, generateMarkdown) => {
6643
6643
  const schemaPath = path.basename(serviceOptions.path) || "openapi.yml";
6644
6644
  const documentTags = document2.tags || [];
6645
6645
  const serviceId = serviceOptions.id || slugify(document2.info.title, { lower: true, strict: true });
@@ -6652,7 +6652,7 @@ var buildService = (serviceOptions, document2) => {
6652
6652
  specifications: {
6653
6653
  openapiPath: schemaPath
6654
6654
  },
6655
- markdown: defaultMarkdown2(document2, schemaPath),
6655
+ markdown: generateMarkdown ? generateMarkdown(document2, schemaPath) : defaultMarkdown2(document2, schemaPath),
6656
6656
  badges: documentTags.map((tag) => ({ content: tag.name, textColor: "blue", backgroundColor: "blue" })),
6657
6657
  owners: serviceOptions.owners || [],
6658
6658
  setMessageOwnersToServiceOwners: serviceOptions.setMessageOwnersToServiceOwners || true
@@ -8292,7 +8292,7 @@ import { join } from "path";
8292
8292
  // package.json
8293
8293
  var package_default = {
8294
8294
  name: "@eventcatalog/generator-openapi",
8295
- version: "7.1.1",
8295
+ version: "7.2.0",
8296
8296
  description: "OpenAPI generator for EventCatalog",
8297
8297
  scripts: {
8298
8298
  build: "tsup",
@@ -9255,7 +9255,7 @@ var index_default = async (_, options) => {
9255
9255
  const document2 = specification.document;
9256
9256
  const version = document2.info.version;
9257
9257
  const specPath = specification.path;
9258
- const service = buildService({ ...serviceSpec, path: specPath }, document2);
9258
+ const service = buildService({ ...serviceSpec, path: specPath }, document2, serviceSpec.generateMarkdown);
9259
9259
  let serviceMarkdown = service.markdown;
9260
9260
  let serviceSpecificationsFiles = [];
9261
9261
  let serviceSpecifications = service.specifications;