Yousong Zhou
|
35384160ce
|
validators: 添加ApplyModelFilters()
|
2018-12-12 08:50:57 +00: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
|
09e511883c
|
cloudcommon: validators: return 400 for struct validation failure
|
2018-11-08 15:54:38 +00:00 |
|
Yousong Zhou
|
06b3495237
|
validators: add NewVlanIdValidator()
|
2018-10-26 06:30:43 +00:00 |
|
Qiu Jian
|
b17b24b232
|
Update format
|
2018-10-12 12:13:35 +08:00 |
|
Qiu Jian
|
17175bc0a4
|
改进:1. 部署VM时注入全局和项目公钥 2. 完善keypair的创建和导入功能 3.
其他
|
2018-10-11 23:04:42 +08:00 |
|
Yousong Zhou
|
a8a19c4de9
|
validators: validate certs and keys
|
2018-09-29 14:12:59 +00:00 |
|
Yousong Zhou
|
8eac303dbf
|
validators: ValidatorStruct: update input data with validated struct
|
2018-09-28 04:07:57 +00:00 |
|
Yousong Zhou
|
dd38b2b53d
|
validators: add Optional() to IValidator for use in ValidateUpdateData()
|
2018-09-13 02:06:41 +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
|
b4f00220f9
|
validators: add ValidatorStringMultiChoices
|
2018-09-10 16:08:13 +00:00 |
|
Yousong Zhou
|
7ad2624a7c
|
cloudcommon: add validator helpers
|
2018-08-30 07:47:08 +00:00 |
|