@eventcatalog/generator-openapi 7.5.2 → 7.5.3
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.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4071,7 +4071,7 @@ var import_node_path = require("path");
|
|
|
4071
4071
|
// package.json
|
|
4072
4072
|
var package_default = {
|
|
4073
4073
|
name: "@eventcatalog/generator-openapi",
|
|
4074
|
-
version: "7.5.
|
|
4074
|
+
version: "7.5.3",
|
|
4075
4075
|
description: "OpenAPI generator for EventCatalog",
|
|
4076
4076
|
scripts: {
|
|
4077
4077
|
build: "tsup",
|
|
@@ -4231,6 +4231,8 @@ var index_default = async (_, options) => {
|
|
|
4231
4231
|
let serviceSpecifications = service.specifications;
|
|
4232
4232
|
let serviceBadges = null;
|
|
4233
4233
|
let serviceAttachments = null;
|
|
4234
|
+
let serviceWritesTo = service.writesTo || [];
|
|
4235
|
+
let serviceReadsFrom = service.readsFrom || [];
|
|
4234
4236
|
const isDomainMarkedAsDraft = options.domain?.draft || null;
|
|
4235
4237
|
const isServiceMarkedAsDraft = (
|
|
4236
4238
|
// @ts-ignore
|
|
@@ -4297,6 +4299,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
4297
4299
|
styles2 = latestServiceInCatalog.styles || null;
|
|
4298
4300
|
serviceBadges = latestServiceInCatalog.badges || null;
|
|
4299
4301
|
serviceAttachments = latestServiceInCatalog.attachments || null;
|
|
4302
|
+
serviceWritesTo = latestServiceInCatalog.writesTo || [];
|
|
4303
|
+
serviceReadsFrom = latestServiceInCatalog.readsFrom || [];
|
|
4300
4304
|
serviceSpecifications = {
|
|
4301
4305
|
...serviceSpecifications,
|
|
4302
4306
|
...persistPreviousSpecificationFiles ? latestServiceInCatalog.specifications : {}
|
|
@@ -4320,8 +4324,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
4320
4324
|
...styles2 ? { styles: styles2 } : {},
|
|
4321
4325
|
...isServiceMarkedAsDraft ? { draft: true } : {},
|
|
4322
4326
|
...serviceAttachments ? { attachments: serviceAttachments } : {},
|
|
4323
|
-
...
|
|
4324
|
-
...
|
|
4327
|
+
...serviceWritesTo.length > 0 ? { writesTo: serviceWritesTo } : {},
|
|
4328
|
+
...serviceReadsFrom.length > 0 ? { readsFrom: serviceReadsFrom } : {}
|
|
4325
4329
|
},
|
|
4326
4330
|
{ path: (0, import_node_path.join)(servicePath), override: true }
|
|
4327
4331
|
);
|