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

[FEATURE REQUEST]: Endpoint Data Validation #8

Open
5 tasks
simply-alliv opened this issue Jun 8, 2020 · 2 comments
Open
5 tasks

[FEATURE REQUEST]: Endpoint Data Validation #8

simply-alliv opened this issue Jun 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@simply-alliv
Copy link
Contributor

Is your feature request related to a problem? Please describe.
To prevent unnecessary calls to the backend, endpoint request data should be validated.

Describe the solution you'd like

  • Create validation rules with Express Validator, Joi, or any other Node API validation middleware.
  • Sanitize parameters and remove all unexpected parameters.
  • Implement data validation (validate data types and format of parameters).
  • Implement database validation (validate that a resource ID sent by the user is in the database).
  • Implement business rules validation (validate that a user can access other people records only if they are an employer or admin)

Describe alternatives you've considered
You can comment if you know of a better solution to this.

Additional context
For more information, see:

@simply-alliv simply-alliv added the enhancement New feature or request label Jun 8, 2020
@fisayo-rm
Copy link

I am interested in working on this feature.

@jan-far
Copy link

jan-far commented Jun 9, 2020

This is of interest to me. Do let me know how i can be of help

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

No branches or pull requests

3 participants