You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The created entity.zod.ts is empty as it did not find any marked interfaces. However, as soon as you install it via yarn, it works just fine. Maybe this can save someone else a few hours who runs into the same problem. Running yarn add --dev ts-to-zod and then afterwards bun ts-to-zod --all outputs then:
The output of ts-to-zod is empty when you use jsDocTagFilter and installed the ts-to-zod via bun. I have tried around quite a bit since
module.exports = [ { name: "Entity", input: "../shared/types/entity.ts", // output: "src/schemas/zod/entity.zod.ts", getSchemaName: (id) =>
z${id}, jsDocTagFilter: (tags) => { console.log("JSDoc Tags:", JSON.stringify(tags, null, 2)); return tags.map((tag) => tag.name).includes("zod"), }, }, ];
shows only empty console logs then. Here the console log:
bun ts-to-zod --all
Generating "Entity"
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
✔ Validating generated types
🎉 Zod schemas generated!
The created entity.zod.ts is empty as it did not find any marked interfaces. However, as soon as you install it via yarn, it works just fine. Maybe this can save someone else a few hours who runs into the same problem. Running yarn add --dev ts-to-zod and then afterwards bun ts-to-zod --all outputs then:
Generating "Entity"
[ { name: 'zod', value: undefined } ]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
✔ Validating generated types
🎉 Zod schemas generated!
Versions
v5.4.4
v3.23.8
v3.8.7
If anyone knows what might cause this issue, please let me know! Thank you very much!
The text was updated successfully, but these errors were encountered: