Skip to content

No Schema validation  #226

@Devendraxp

Description

@Devendraxp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions