#zod
Read more stories on Hashnode
Articles with this tag
⭐ Schema Validation with Zod and Express.js ⭐ Overview In the past, I have done articles on what is [Zod](https://zod.dev/), and how to use Zod to...
✨ Transform Data from Within a Schema ✨ Another useful feature of Zod is manipulating data from an API response after parsing. We are going back to...
We will be looking at techniques for refactoring working code to remove duplication. Here we have schemas for User, Post, and Comment: const User =...
✨ Complex Schema Validation ✨ Our Form has name, email, and optionally will have phoneNumber and website. const Form = z.object({ name: z.string(), ...
✨ Be Specific with Allowed Types ✨ We will validate forms again in this example. const Form = z.object({ repoName: z.string(), privacyLevel:...
✨ Set a Default Value with Zod ✨ Our following example starts similarly to the last: a form input validator that supports an optional value. This...