@kubb/adapter-oas 5.13.1 → 5.14.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var compatibility = {
|
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region package.json
|
|
23
|
-
var version = "5.
|
|
23
|
+
var version = "5.14.0";
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/constants.ts
|
|
26
26
|
/**
|
|
@@ -2308,7 +2308,7 @@ function createSchemaParser(ctx) {
|
|
|
2308
2308
|
function collectInlineEnums(roots, topLevelNames) {
|
|
2309
2309
|
const promoted = /* @__PURE__ */ new Map();
|
|
2310
2310
|
for (const root of roots) {
|
|
2311
|
-
const isSchemaRoot = root.kind ===
|
|
2311
|
+
const isSchemaRoot = root.kind === ast.nodeKinds.schema;
|
|
2312
2312
|
for (const node of ast.collect(root, { schema: (schemaNode) => schemaNode })) {
|
|
2313
2313
|
if (node.type !== "enum" || !node.name) continue;
|
|
2314
2314
|
if (isSchemaRoot && node === root) continue;
|