Describe the enhancement you'd like
Currently, there is no server-side validation implemented. Adding server-side validation would mean,
1) The validation cannot be bypassed unlike in the client-side validation.
2) Unwanted data can be completely eliminated.
Describe approaches if you have thought of any
The express validator middleware will be used to implement server-side validation.
1) Validating middleware will be integrated into the routes section.
2) The returning validation result object off of the above middleware will then be checked for any errors.
Additional context
I will be working on this issue.
@devesh-verma Just saw that the data is validated at the respective schemas. In that case, the addition of this might not be required. Would like to hear out your opinion!
Describe the enhancement you'd like Currently, there is no server-side validation implemented. Adding server-side validation would mean,
1) The validation cannot be bypassed unlike in the client-side validation. 2) Unwanted data can be completely eliminated.
Describe approaches if you have thought of any The express validator middleware will be used to implement server-side validation. 1) Validating middleware will be integrated into the routes section. 2) The returning validation result object off of the above middleware will then be checked for any errors.
Additional context I will be working on this issue.