Tag: Validation
4 posts
-
Schema Validation with Yup: Strings, Numbers, Objects, Arrays, Conditional and Async Rules
Schema-based validation with Yup: basic schemas, required and optional fields, string, number, object and array rules, conditional and async validation, and TypeScript use with forms.
-
Validating Data with Joi: Schemas, Conditional and Async Rules, abortEarly and stripUnknown
Complete Joi guide for data validation in Node.js: schema design, async validation, abortEarly/stripUnknown security tradeoffs.
-
Zod for Runtime Validation in TypeScript: Schemas, Inferred Types, Transforms and Integrations
Validate runtime data in TypeScript with Zod: infer types from schemas, transform input, handle errors, and use it with React Hook Form and tRPC.
-
Forms with React Hook Form: register, Zod Validation, Controller and Field Arrays
Building fast forms with React Hook Form: register and handleSubmit, validation, Zod integration, watch and control, Controller for custom inputs, and dynamic field arrays.