kshitij10496/hercules

Input validation checks

オープン

#34 opened on 2018/10/24

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Go (18 件のフォーク)auto 404
discussionenhancementhelp wanted

Repository metrics

Stars
 (35 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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. 😄

コントリビューターガイド