@kubb/core 5.15.4 → 5.16.1

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
@@ -45,7 +45,7 @@ let node_readline = require("node:readline");
45
45
  let node_url = require("node:url");
46
46
  let node_module = require("node:module");
47
47
  // package.json
48
- var version = "5.15.4";
48
+ var version = "5.16.1";
49
49
  // ../../internals/utils/src/casing.ts
50
50
  /**
51
51
  * Shared implementation for camelCase and PascalCase conversion.
@@ -665,6 +665,12 @@ const diagnosticCatalog = {
665
665
  cause: "Schemas that only `$ref` each other form a loop, so none of them has a shape to generate. Kubb resolves them to `unknown`.",
666
666
  fix: "Break the loop by giving one of the schemas a real definition, or remove the `$ref` that closes it."
667
667
  },
668
+ duplicateDiscriminator: {
669
+ code: "KUBB_DUPLICATE_DISCRIMINATOR",
670
+ title: "Duplicate discriminator value",
671
+ cause: "Two or more `oneOf`/`anyOf` members pin the `discriminator` property to the same value, so the value cannot pick a branch. Zod `z.discriminatedUnion` throws on the first parse of such a union.",
672
+ fix: "Give each member its own discriminator value, or drop the `discriminator` so the members are matched by shape."
673
+ },
668
674
  deprecated: {
669
675
  code: "KUBB_DEPRECATED",
670
676
  title: "Deprecated",