StudyNotion-An-Online-Education-Platform
StudyNotion-An-Online-Education-Platform copied to clipboard
Improve ZOD validation for router lavel
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.
- Integrate the ZOD (Zero-Overhead Data Validation) library into our registration process to validate the model.
- Define validation schemas for the model to enforce correct formatting and constraints.
- It is necessary to create validation schemas. These schemas will help enforce correct formatting and ensure that the constraints are met.