kshitij10496/hercules

Input validation checks

Aperta

#34 aperta il 24 ott 2018

 (0 commenti) (0 reazioni) (0 assegnatari)Go (18 fork)auto 404
discussionenhancementhelp wanted

Metriche repository

Star
 (35 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Task: Implement input validation checks/methods on the parameters sent by the user.

Currently, all the endpoint handlers expectedly delegate the task of validation to the corresponding logic layer. Now, its the responsibility of the logic layer to perform input validation and return proper errors back to the handler.

In order to start with the fix, we need to discuss what constitutes a valid entity. For example, what needs to be checked in order to assure that a department/course is valid?

P.S: This would form the basis of developing a better error handling mechanism. 😄

Guida contributor