@kubb/core 5.5.2 → 5.5.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/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_usingCtx = require("./usingCtx-4PkDR7Wl.cjs");
2
+ const require_usingCtx = require("./usingCtx-C_vhSf7M.cjs");
3
3
  let node_async_hooks = require("node:async_hooks");
4
4
  let node_util = require("node:util");
5
5
  let node_process = require("node:process");
@@ -127,7 +127,7 @@ function formatMs(ms) {
127
127
  /**
128
128
  * Docs major version, derived from the package version so the link tracks the published major.
129
129
  */
130
- const docsMajor = "5.5.2".split(".")[0] ?? "5";
130
+ const docsMajor = "5.5.4".split(".")[0] ?? "5";
131
131
  /**
132
132
  * Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
133
133
  * with no `kind` is treated as a `problem`.
@@ -215,6 +215,11 @@ const diagnosticCatalog = {
215
215
  cause: "The parsed `input` has no `openapi` or `swagger` version field, so it is not an OpenAPI or Swagger document.",
216
216
  fix: "Point `input` at a document that declares `openapi` or `swagger`, and check that a passed object is the spec itself rather than a wrapper around it."
217
217
  },
218
+ [require_usingCtx.diagnosticCode.invalidSpec]: {
219
+ title: "Invalid spec",
220
+ cause: "The document does not pass OpenAPI schema validation. Kubb still generates from it, but the output can be incomplete or wrong.",
221
+ fix: "Fix the reported problem in the spec. Run `kubb validate` to list every error, or set `validate: false` on the adapter to skip the check."
222
+ },
218
223
  [require_usingCtx.diagnosticCode.refNotFound]: {
219
224
  title: "Reference not found",
220
225
  cause: "A `$ref` could not be resolved in the source document.",