Commit Graph

5 Commits

Author SHA1 Message Date
Yousong Zhou
8eac303dbf validators: ValidatorStruct: update input data with validated struct 2018-09-28 04:07:57 +00:00
Yousong Zhou
cc70be165f validators: rework error handling
- Return httperrors by default (return ValidateError when testing)
 - Special casing sql.ErrNoRows for model not found
2018-09-12 01:26:52 +00:00
Yousong Zhou
2b691c5dbd validators: StringMultiChoicesValidator: add test case 2018-09-12 01:26:52 +00:00
Yousong Zhou
75f38447fd validators: add BoolValidator 2018-09-10 16:08:17 +00:00
Yousong Zhou
7ad2624a7c cloudcommon: add validator helpers 2018-08-30 07:47:08 +00:00