@kubb/plugin-zod 5.4.0 → 5.5.0-canary.20260929T184855

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
@@ -1419,7 +1419,7 @@ const printerZod = kubb_kit.ast.createPrinter((options) => {
1419
1419
  if (entries.length === 0) return catchallType ? `${recordFn}(${propertyNamesKeySchema || "z.string()"}, ${catchallType})` : objectBase;
1420
1420
  return catchallType ? `${objectBase}.catchall(${catchallType})` : objectBase;
1421
1421
  }
1422
- if (entries.length === 0 && patterns.length === 0 && propertyNamesKeySchema && !isStrict) {
1422
+ if (entries.length === 0 && patterns.length === 0 && propertyNamesKeySchema) {
1423
1423
  const unknownType = this.transform(kubb_kit.ast.factory.createSchema({ type: "unknown" }));
1424
1424
  return `${recordFn}(${propertyNamesKeySchema}, ${unknownType})`;
1425
1425
  }
@@ -1690,7 +1690,7 @@ const printerZodMini = kubb_kit.ast.createPrinter((options) => {
1690
1690
  if (entries.length === 0) return catchallType ? `${recordFn}(${propertyNamesKeySchema || "z.string()"}, ${catchallType})` : objectBase;
1691
1691
  return catchallType ? `z.catchall(${objectBase}, ${catchallType})` : objectBase;
1692
1692
  }
1693
- if (entries.length === 0 && patterns.length === 0 && propertyNamesKeySchema && !isStrict) return `${recordFn}(${propertyNamesKeySchema}, ${this.transform(kubb_kit.ast.factory.createSchema({ type: "unknown" }))})`;
1693
+ if (entries.length === 0 && patterns.length === 0 && propertyNamesKeySchema) return `${recordFn}(${propertyNamesKeySchema}, ${this.transform(kubb_kit.ast.factory.createSchema({ type: "unknown" }))})`;
1694
1694
  if (node.additionalProperties === true) return objectBase;
1695
1695
  if (isStrict) return objectBase;
1696
1696
  if (patterns.length > 0) {