@eventcatalog/generator-asyncapi 3.0.5 → 4.0.1
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/checkLicense.js +2 -2
- package/dist/checkLicense.js.map +1 -1
- package/dist/checkLicense.mjs +2 -2
- package/dist/checkLicense.mjs.map +1 -1
- 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
|
@@ -290,7 +290,7 @@ import path2 from "path";
|
|
|
290
290
|
// package.json
|
|
291
291
|
var package_default = {
|
|
292
292
|
name: "@eventcatalog/generator-asyncapi",
|
|
293
|
-
version: "
|
|
293
|
+
version: "4.0.1",
|
|
294
294
|
description: "AsyncAPI generator for EventCatalog",
|
|
295
295
|
scripts: {
|
|
296
296
|
build: "tsup",
|
|
@@ -328,7 +328,7 @@ var package_default = {
|
|
|
328
328
|
dependencies: {
|
|
329
329
|
"@asyncapi/avro-schema-parser": "^3.0.24",
|
|
330
330
|
"@asyncapi/parser": "^3.3.0",
|
|
331
|
-
"@eventcatalog/sdk": "^
|
|
331
|
+
"@eventcatalog/sdk": "^2.0.0",
|
|
332
332
|
chalk: "^4",
|
|
333
333
|
"fs-extra": "^11.2.0",
|
|
334
334
|
glob: "^11.0.0",
|
|
@@ -1633,7 +1633,10 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
1633
1633
|
);
|
|
1634
1634
|
console.log(chalk3.cyan(` - Message (v${messageVersion}) created`));
|
|
1635
1635
|
if (messageHasSchema(message)) {
|
|
1636
|
-
|
|
1636
|
+
let schema = message.payload()?.extensions()?.get("x-parser-original-payload")?.json() || message.payload()?.json();
|
|
1637
|
+
if (schema?.schema) {
|
|
1638
|
+
schema = schema.schema;
|
|
1639
|
+
}
|
|
1637
1640
|
await addSchemaToMessage(
|
|
1638
1641
|
messageId,
|
|
1639
1642
|
{
|