Commit Graph

9 Commits

Author SHA1 Message Date
Yousong Zhou
b41d2f7248 validators: add ValidatorHostPort 2020-01-10 21:33:12 +08:00
Yousong Zhou
0c00b3ac98 validators: add ValidatorIntChoices 2020-01-10 21:33:12 +08:00
Zexi
db0e303798 make 'go test ./...' pass 2019-04-15 19:54:46 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
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