gourangpathak / StudyNotion-An-Online-Education-Platform

StudyNotion is a fully functional ed-tech platform that enables users to create, consume, and rate educational content. The platform is built using the MERN stack, which includes ReactJS, NodeJS, MongoDB, and ExpressJS.
https://studynotion-frontend.vercel.app/
29 stars 34 forks source link

Improve ZOD validation for router lavel #13

Open ronisarkarexe opened 4 months ago

ronisarkarexe commented 4 months ago

We propose implementing ZOD validation to ensure that users provide correctly formatted data in-router level. If the user sends an incorrect format, the request will not hit the API, preventing unnecessary calls.

  1. Integrate the ZOD (Zero-Overhead Data Validation) library into our registration process to validate the model.
  2. Define validation schemas for the model to enforce correct formatting and constraints.
  3. It is necessary to create validation schemas. These schemas will help enforce correct formatting and ensure that the constraints are met.
ronisarkarexe commented 4 months ago

@gourangpathak please assign me this issue.