1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-10 10:00:40 +00:00
Commit Graph

78 Commits

Author SHA1 Message Date
8039cc8e59 Merge pull request from
Prohibit multiple calls SetDefaultMessage.
2020-06-26 17:49:36 +08:00
e725192072 fix 2020-06-25 22:11:32 +08:00
469f2c226d Merge pull request from guhan121/go_modules_route_compatibility
for go modules, generate route by `GO111MODULE=on`
2020-06-25 20:30:27 +08:00
3ce68d6a30 Move many PR's change here since the original authors are responseless 2020-06-23 23:14:51 +08:00
a764e17fbf check ci 2020-06-23 10:43:51 +08:00
3879fd9c34 修改测试用例 2020-06-18 17:25:48 +08:00
af238ee047 Merge remote-tracking branch 'origin/develop' into go_modules_route_compatibility
# Conflicts:
#	go.mod
#	go.sum
2020-06-18 16:41:03 +08:00
ce4ce74c8d Fix validation test 2020-06-06 20:50:48 +08:00
70733d9810 fix label == `` 2020-06-01 15:06:33 +08:00
713503e43d fix exist typo 2020-02-14 16:47:47 +08:00
034599ca1d 验证调整,增加label, xx不能为空 2020-01-17 16:47:19 +08:00
fb640f0075 更新16开头手机号的正则测试 2019-10-22 17:07:22 +08:00
241f10b429 添加16开头手机号验证,162电信,165移动,166/167联通。 2019-10-22 16:58:05 +08:00
b8d626bbea 添加16开头手机号验证,162电信,165移动,166/167联通。 2019-10-22 16:28:19 +08:00
d02699a189 add new test case for china mobile phone 2018-12-30 20:51:21 +08:00
2034d1b101 联通171,175 电信173 2018-12-29 17:41:59 +08:00
0e0718d110 fix typo
hasReuired --> hasRequired
2018-07-17 23:32:11 +08:00
5ed112e946 added CanSkipAlso 2018-02-02 10:22:43 +01:00
453f112094 added more test case 2018-02-01 18:31:04 +01:00
faa3341603 Fix after test failure 2018-01-28 18:19:27 +01:00
ee9cf05796 Handle pointer validation 2018-01-28 17:40:05 +01:00
df37739c7d fix golint comments 2017-11-25 19:18:37 +02:00
6641a436a2 validation: fix ErrorMap, added func AddError(key, message) 2017-09-06 16:49:21 +08:00
4fc95b0d69 gofmt and golint 2017-07-19 00:52:27 +08:00
e72b02b7cc validation: support required option for some struct tag valids 2017-07-03 16:26:23 +08:00
6e34f43721 Fix break API change
support int64 on 64-bit platform
2017-06-28 16:56:37 +08:00
2231841d74 validation: support int64 int32 int16 and int8 type 2017-06-21 14:13:30 +08:00
388a5610fa Merge pull request from chesedo/RequiredValidationCatchSpaces
[WIP]Have Required validator trim strings to fix 
2017-05-18 22:44:15 +08:00
69f0b94745 fix gosimple 2017-05-16 22:21:43 +08:00
aa8f7bc146 fix ineffectual 2017-04-28 22:36:28 +08:00
37c1ffc57a add go simple support 2017-03-17 20:22:20 +02:00
c9cc642d37 validation: amend email test case 2017-03-12 20:27:09 +08:00
b34853f8cc validattion: add test case for email valid 2017-03-12 19:30:23 +08:00
d41f4c0a3a validation: fix email valid 2017-03-12 19:23:46 +08:00
a8a2dffc59 Have Required validator trim strings to fix
This will cause the Required validator not to consider fields that has
only spaces or new lines to be regarded as valid. This is done by
checking if the trimmed version of the string is valid.
2017-01-06 10:12:22 +02:00
77ff15ee33 Implement Error interface for validation error 2016-05-05 19:26:03 +08:00
8bd1be8e29 Update validators.go
增加178号段
2016-03-04 11:16:47 +08:00
f925bb9058 golint all the files 2016-01-18 00:18:21 +08:00
687266fb64 Add 179 to valid Phone number 2016-01-07 23:03:32 +08:00
21f767784b Add custom validation function doc 2016-01-07 22:55:12 +08:00
103ac3ee5b Add custom validation function 2016-01-07 22:42:04 +08:00
bef6bca397 Add function to set validation default messages 2016-01-05 21:14:35 +08:00
4ba50e5df5 fix 2015-10-12 20:50:58 +08:00
2389bc72f9 golint validation 2015-09-13 00:13:19 +08:00
06b25deab2 Update validators.go
Support virtual operators paragraph 170!
2015-07-04 17:55:01 +08:00
dfe055c47c remove useless comments 2015-05-25 09:10:36 +08:00
74b22649c8 remove the double isStruct/isStructPtr check 2015-05-25 09:10:36 +08:00
4255630564 add Recursively validation 2015-05-25 09:10:36 +08:00
d7791ba837 Update validators.go
//176 中国联通
//177 中国电信
//145 中国联通
//147 中国移动
//149 中国电信
2015-05-25 09:10:36 +08:00
55b1d6a897 Update validators.go
edit mobile regular expression ; add 184 Section No.
2015-05-25 09:10:35 +08:00