Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Schema validation #226

Open
Devendraxp opened this issue Sep 20, 2024 · 1 comment
Open

No Schema validation #226

Devendraxp opened this issue Sep 20, 2024 · 1 comment

Comments

@Devendraxp
Copy link

Devendraxp commented Sep 20, 2024

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):

  • Device: Realme gt 2
  • OS: android
  • Browser chrome
  • Version 14

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

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant