@kubb/adapter-oas 5.23.2 → 5.23.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.
@@ -16,4 +16,4 @@ async function validateSpec(document) {
16
16
  }
17
17
  export { validateSpec as t };
18
18
 
19
- //# sourceMappingURL=validateSpec-Ospj1aaB.js.map
19
+ //# sourceMappingURL=validateSpec-BTbUBxQB.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateSpec-Ospj1aaB.js","names":[],"sources":["../src/load/validateSpec.ts"],"sourcesContent":["import { validate } from '@readme/openapi-parser'\nimport type { Document } from '../types.ts'\n\nexport type ValidationErrors = { errors: Array<{ message: string }>; additionalErrors: number }\n\nexport type WorkerResult = { valid: true } | ({ valid: false } & ValidationErrors) | { thrown: string }\n\n/** Checks `document` with `@readme/openapi-parser`. It dereferences `document` in place, so pass a copy. */\nexport async function validateSpec(document: Document): Promise<WorkerResult> {\n try {\n const result = await validate(document, { validate: { errors: { colorize: false } } })\n return result.valid\n ? { valid: true }\n : { valid: false, errors: result.errors.map(({ message }) => ({ message })), additionalErrors: result.additionalErrors }\n } catch (error) {\n // No `@internals/utils` here: the worker runs this file without the workspace build.\n return { thrown: error instanceof Error ? error.message : String(error) }\n }\n}\n"],"mappings":";;;;AAQA,eAAsB,aAAa,UAA2C;CAC5E,IAAI;EACF,MAAM,SAAS,MAAM,SAAS,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,MAAM,EAAE,EAAE,CAAC;EACrF,OAAO,OAAO,QACV,EAAE,OAAO,KAAK,IACd;GAAE,OAAO;GAAO,QAAQ,OAAO,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE;GAAG,kBAAkB,OAAO;EAAiB;CAC3H,SAAS,OAAO;EAEd,OAAO,EAAE,QAAQ,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,EAAE;CAC1E;AACF"}
1
+ {"version":3,"file":"validateSpec-BTbUBxQB.js","names":[],"sources":["../src/load/validateSpec.ts"],"sourcesContent":["import { validate } from '@readme/openapi-parser'\nimport type { Document } from '../types.ts'\n\nexport type ValidationErrors = { errors: Array<{ message: string }>; additionalErrors: number }\n\nexport type WorkerResult = { valid: true } | ({ valid: false } & ValidationErrors) | { thrown: string }\n\n/** Checks `document` with `@readme/openapi-parser`. It dereferences `document` in place, so pass a copy. */\nexport async function validateSpec(document: Document): Promise<WorkerResult> {\n try {\n const result = await validate(document, { validate: { errors: { colorize: false } } })\n return result.valid\n ? { valid: true }\n : { valid: false, errors: result.errors.map(({ message }) => ({ message })), additionalErrors: result.additionalErrors }\n } catch (error) {\n // No `@internals/utils` here: the worker runs this file without the workspace build.\n return { thrown: error instanceof Error ? error.message : String(error) }\n }\n}\n"],"mappings":";;;;AAQA,eAAsB,aAAa,UAA2C;CAC5E,IAAI;EACF,MAAM,SAAS,MAAM,SAAS,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,MAAM,EAAE,EAAE,CAAC;EACrF,OAAO,OAAO,QACV,EAAE,OAAO,KAAK,IACd;GAAE,OAAO;GAAO,QAAQ,OAAO,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE;GAAG,kBAAkB,OAAO;EAAiB;CAC3H,SAAS,OAAO;EAEd,OAAO,EAAE,QAAQ,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,EAAE;CAC1E;AACF"}
@@ -16,4 +16,4 @@ async function validateSpec(document) {
16
16
  }
17
17
  exports.validateSpec = validateSpec;
18
18
 
19
- //# sourceMappingURL=validateSpec-DCiUXkMn.cjs.map
19
+ //# sourceMappingURL=validateSpec-Bxf2WZ1Y.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateSpec-DCiUXkMn.cjs","names":["validate"],"sources":["../src/load/validateSpec.ts"],"sourcesContent":["import { validate } from '@readme/openapi-parser'\nimport type { Document } from '../types.ts'\n\nexport type ValidationErrors = { errors: Array<{ message: string }>; additionalErrors: number }\n\nexport type WorkerResult = { valid: true } | ({ valid: false } & ValidationErrors) | { thrown: string }\n\n/** Checks `document` with `@readme/openapi-parser`. It dereferences `document` in place, so pass a copy. */\nexport async function validateSpec(document: Document): Promise<WorkerResult> {\n try {\n const result = await validate(document, { validate: { errors: { colorize: false } } })\n return result.valid\n ? { valid: true }\n : { valid: false, errors: result.errors.map(({ message }) => ({ message })), additionalErrors: result.additionalErrors }\n } catch (error) {\n // No `@internals/utils` here: the worker runs this file without the workspace build.\n return { thrown: error instanceof Error ? error.message : String(error) }\n }\n}\n"],"mappings":";;;;AAQA,eAAsB,aAAa,UAA2C;CAC5E,IAAI;EACF,MAAM,SAAS,OAAA,GAAMA,uBAAAA,SAAAA,CAAS,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,MAAM,EAAE,EAAE,CAAC;EACrF,OAAO,OAAO,QACV,EAAE,OAAO,KAAK,IACd;GAAE,OAAO;GAAO,QAAQ,OAAO,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE;GAAG,kBAAkB,OAAO;EAAiB;CAC3H,SAAS,OAAO;EAEd,OAAO,EAAE,QAAQ,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,EAAE;CAC1E;AACF"}
1
+ {"version":3,"file":"validateSpec-Bxf2WZ1Y.cjs","names":["validate"],"sources":["../src/load/validateSpec.ts"],"sourcesContent":["import { validate } from '@readme/openapi-parser'\nimport type { Document } from '../types.ts'\n\nexport type ValidationErrors = { errors: Array<{ message: string }>; additionalErrors: number }\n\nexport type WorkerResult = { valid: true } | ({ valid: false } & ValidationErrors) | { thrown: string }\n\n/** Checks `document` with `@readme/openapi-parser`. It dereferences `document` in place, so pass a copy. */\nexport async function validateSpec(document: Document): Promise<WorkerResult> {\n try {\n const result = await validate(document, { validate: { errors: { colorize: false } } })\n return result.valid\n ? { valid: true }\n : { valid: false, errors: result.errors.map(({ message }) => ({ message })), additionalErrors: result.additionalErrors }\n } catch (error) {\n // No `@internals/utils` here: the worker runs this file without the workspace build.\n return { thrown: error instanceof Error ? error.message : String(error) }\n }\n}\n"],"mappings":";;;;AAQA,eAAsB,aAAa,UAA2C;CAC5E,IAAI;EACF,MAAM,SAAS,OAAA,GAAMA,uBAAAA,SAAAA,CAAS,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,MAAM,EAAE,EAAE,CAAC;EACrF,OAAO,OAAO,QACV,EAAE,OAAO,KAAK,IACd;GAAE,OAAO;GAAO,QAAQ,OAAO,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE;GAAG,kBAAkB,OAAO;EAAiB;CAC3H,SAAS,OAAO;EAEd,OAAO,EAAE,QAAQ,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,EAAE;CAC1E;AACF"}
@@ -0,0 +1 @@
1
+ export { t as validateSpec } from "./validateSpec-BTbUBxQB.js";
@@ -1,5 +1,5 @@
1
- import { t as validateSpec } from "./validateSpec-Ospj1aaB.js";
2
1
  import { parentPort, workerData } from "node:worker_threads";
2
+ import { t as validateSpec } from "./validateSpec-BTbUBxQB.js";
3
3
  // src/load/validateWorker.ts
4
4
  parentPort?.postMessage(await validateSpec(workerData));
5
5
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/adapter-oas",
3
- "version": "5.23.2",
3
+ "version": "5.23.4",
4
4
  "description": "OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.",
5
5
  "keywords": [
6
6
  "adapter",
@@ -66,10 +66,10 @@
66
66
  "registry": "https://registry.npmjs.org/"
67
67
  },
68
68
  "dependencies": {
69
- "@kubb/core": "^5.23.2",
70
- "@kubb/kit": "5.23.2",
69
+ "@kubb/core": "^5.23.4",
70
+ "@kubb/kit": "5.23.4",
71
71
  "@readme/openapi-parser": "^10.0.0",
72
- "@scalar/openapi-upgrader": "^0.4.9",
72
+ "@scalar/openapi-upgrader": "^0.5.0",
73
73
  "api-ref-bundler": "0.5.1",
74
74
  "js-yaml": "^5.5.0",
75
75
  "yaml": "^2.9.1"
@@ -1 +0,0 @@
1
- export { t as validateSpec } from "./validateSpec-Ospj1aaB.js";