Yousong Zhou
|
0c00b3ac98
|
validators: add ValidatorIntChoices
|
2020-01-10 21:33:12 +08:00 |
|
Qiu Jian
|
09f91f306a
|
update vendor
|
2019-11-11 17:05:21 +08:00 |
|
Qiu Jian
|
53c0d3b29f
|
fix: recode error handling to make conform with error handling standard
|
2019-11-11 10:55:01 +08:00 |
|
Yousong Zhou
|
396fc7be7c
|
validators: add ValidatorByActor
|
2019-10-18 03:22:29 +00:00 |
|
Yousong Zhou
|
e30448f119
|
validators: add string length validator
|
2019-10-18 03:22:29 +00:00 |
|
Qiu Jian
|
870813f04b
|
feature: s3gateway
|
2019-07-24 21:28:37 +08:00 |
|
Yousong Zhou
|
29d445b058
|
validators: errors: 使用msgFmt而非包含{NN}的msgTmpl
|
2019-06-28 15:09:13 +00:00 |
|
Yousong Zhou
|
c0b080ab66
|
validators: 默认将pending deleted的模型排除在外
|
2019-06-24 14:29:01 +00:00 |
|
Qiu Jian
|
004d9b6f95
|
update copyright headers of all source
|
2019-03-29 14:47:48 +08:00 |
|
Qiu Jian
|
df0474e25a
|
fix: break dependencies of climc/mcclient on compute/models
|
2019-02-27 16:40:13 +08:00 |
|
Yousong Zhou
|
751525d779
|
validators: add newInvalidStructError()
To retain fmt and parameter information
{"class":"InputParameterError","code":400,"data":{"fields":["acl_entries","192.168.0.256"],"id":"Invalid value error: invalid %q: invalid addr %s"},"details":"Invalid value error: invalid \"acl_entries\": invalid addr 192.168.0.256"}
{"class":"InputParameterError","code":400,"data":{"fields":[],"id":"invalid \"acl_entries\": invalid addr 192.168.0.256"},"details":"invalid \"acl_entries\": invalid addr 192.168.0.256"}
|
2018-11-19 10:54:17 +00:00 |
|
Yousong Zhou
|
f9ac0c0204
|
validators: errors: retain msg fmt and params
|
2018-11-19 10:54:17 +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
|
7ad2624a7c
|
cloudcommon: add validator helpers
|
2018-08-30 07:47:08 +00:00 |
|