@eventcatalog/core 2.42.3 → 2.42.4
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/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-COTFUOVS.js → chunk-CD54ILWK.js} +1 -1
- package/dist/{chunk-ANO2D5HK.js → chunk-QKYZ35CN.js} +1 -1
- package/dist/{chunk-BZC2BFNY.js → chunk-VBWDUTD4.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/components/MDX/SchemaViewer/SchemaViewer.astro +16 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/asyncapi/[filename].astro +4 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-CD54ILWK.js";
|
|
4
|
+
import "../chunk-QKYZ35CN.js";
|
|
5
|
+
import "../chunk-VBWDUTD4.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-CD54ILWK.js";
|
|
10
|
+
import "./chunk-QKYZ35CN.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-SLEMYHTU.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VBWDUTD4.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -48,6 +48,22 @@ function mergeAllOfSchemas(schema: any) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function processSchema(schema: any) {
|
|
51
|
+
// Handle $ref
|
|
52
|
+
if (schema.$ref) {
|
|
53
|
+
// Only support local refs like "#/definitions/xyz"
|
|
54
|
+
const refPath = schema.$ref;
|
|
55
|
+
if (refPath.startsWith('#/definitions/')) {
|
|
56
|
+
const defName = refPath.replace('#/definitions/', '');
|
|
57
|
+
const definitions = schema.definitions;
|
|
58
|
+
if (definitions && definitions[defName]) {
|
|
59
|
+
// Recursively process the referenced schema
|
|
60
|
+
return processSchema(definitions[defName]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// If not found, return as is
|
|
64
|
+
return schema;
|
|
65
|
+
}
|
|
66
|
+
|
|
51
67
|
if (schema.allOf) {
|
|
52
68
|
return mergeAllOfSchemas(schema);
|
|
53
69
|
}
|