@eventcatalog/generator-openapi 5.0.2 → 5.0.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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -613,7 +613,7 @@ import chalk from "chalk";
|
|
|
613
613
|
// package.json
|
|
614
614
|
var package_default = {
|
|
615
615
|
name: "@eventcatalog/generator-openapi",
|
|
616
|
-
version: "5.0.
|
|
616
|
+
version: "5.0.3",
|
|
617
617
|
description: "OpenAPI generator for EventCatalog",
|
|
618
618
|
scripts: {
|
|
619
619
|
build: "tsup",
|
|
@@ -649,7 +649,7 @@ var package_default = {
|
|
|
649
649
|
dependencies: {
|
|
650
650
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
651
651
|
"@changesets/cli": "^2.27.7",
|
|
652
|
-
"@eventcatalog/sdk": "^2.
|
|
652
|
+
"@eventcatalog/sdk": "^2.2.4",
|
|
653
653
|
chalk: "^4",
|
|
654
654
|
"js-yaml": "^4.1.0",
|
|
655
655
|
"openapi-types": "^12.1.3",
|
|
@@ -1630,6 +1630,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
1630
1630
|
});
|
|
1631
1631
|
let owners = service.owners || [];
|
|
1632
1632
|
let repository = null;
|
|
1633
|
+
let styles2 = null;
|
|
1633
1634
|
const latestServiceInCatalog = await getService(service.id, "latest");
|
|
1634
1635
|
console.log(chalk3.blue(`Processing service: ${document.info.title} (v${version})`));
|
|
1635
1636
|
if (latestServiceInCatalog) {
|
|
@@ -1638,6 +1639,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
1638
1639
|
sends = latestServiceInCatalog.sends || [];
|
|
1639
1640
|
owners = latestServiceInCatalog.owners || [];
|
|
1640
1641
|
repository = latestServiceInCatalog.repository || null;
|
|
1642
|
+
styles2 = latestServiceInCatalog.styles || null;
|
|
1641
1643
|
serviceSpecifications = {
|
|
1642
1644
|
...serviceSpecifications,
|
|
1643
1645
|
...latestServiceInCatalog.specifications
|
|
@@ -1658,7 +1660,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
1658
1660
|
sends,
|
|
1659
1661
|
receives,
|
|
1660
1662
|
...owners ? { owners } : {},
|
|
1661
|
-
...repository ? { repository } : {}
|
|
1663
|
+
...repository ? { repository } : {},
|
|
1664
|
+
...styles2 ? { styles: styles2 } : {}
|
|
1662
1665
|
},
|
|
1663
1666
|
{ path: join(servicePath), override: true }
|
|
1664
1667
|
);
|