Sahil1786 / Petari

Food donate Web App
Other
55 stars 111 forks source link

No Schema validation #226

Open Devendraxp opened 1 month ago

Devendraxp commented 1 month ago

Screenshot_2024-09-20-14-29-39-76_cbf47468f7ecfbd8ebcc46bf9cc626da Describe the bug There is no Schema validation in models or using an external library like Joi.

To Reproduce Steps to reproduce the behavior:

  1. You can send empty, garbage or dengerous data using postman, hopscotch or insomnia.

Expected behavior Should have schema validation using default mongoose models like { type : string required : true //this line is missing }

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

I want to work on this issue, please assign it to me.

github-actions[bot] commented 1 month ago

Congratulations, @Devendraxp! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!

We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines

Somesh-nayek commented 1 month ago

@Sahil1786 please assign me this under GsSOC-2024