@skmtc/core 0.0.652 → 0.0.653

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.
@@ -24,7 +24,7 @@ export const toV3Document = async (schema) => {
24
24
  })
25
25
  .with({ swagger: P.string.startsWith('2.0') }, async (doc) => {
26
26
  const parsed = await converter.convertObj(doc, {});
27
- return parsed;
27
+ return parsed.openapi;
28
28
  })
29
29
  .otherwise(() => {
30
30
  console.log('Unrecognized OpenAPI version', JSON.stringify(schema, null, 2).substring(0, 1000));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.652",
3
+ "version": "0.0.653",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -31,7 +31,7 @@ const toV3Document = async (schema) => {
31
31
  })
32
32
  .with({ swagger: ts_pattern_1.P.string.startsWith('2.0') }, async (doc) => {
33
33
  const parsed = await swagger2openapi_1.default.convertObj(doc, {});
34
- return parsed;
34
+ return parsed.openapi;
35
35
  })
36
36
  .otherwise(() => {
37
37
  console.log('Unrecognized OpenAPI version', JSON.stringify(schema, null, 2).substring(0, 1000));