Zod

https://stack.convex.dev/typescript-zod-function-validation is it a good idea to use Zod for validation - I just started using tanstack forms and have used zod a little and liked it. any thoughts on using it as described in this article
Zod with TypeScript for Server-side Validation and End-to-End Types
Use Zod with TypeScript for argument validation on your server functions allows you to both protect against invalid data, and define TypeScript types ...
2 Replies
Convex Bot
Convex Bot4d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart4d ago
Ian's advice at the end of the article is a pretty good synopsis: https://stack.convex.dev/typescript-zod-function-validation#what-would-i-do Folks do use this approach, it's not deprecated or anything if that's what you're asking