1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-18 06:10:54 +00:00
Commit Graph

55 Commits

Author SHA1 Message Date
astaxie
4fc95b0d69 gofmt and golint 2017-07-19 00:52:27 +08:00
miraclesu
e72b02b7cc validation: support required option for some struct tag valids 2017-07-03 16:26:23 +08:00
miraclesu
6e34f43721 Fix break API change
support int64 on 64-bit platform
2017-06-28 16:56:37 +08:00
miraclesu
2231841d74 validation: support int64 int32 int16 and int8 type 2017-06-21 14:13:30 +08:00
astaxie
388a5610fa Merge pull request #2365 from chesedo/RequiredValidationCatchSpaces
[WIP]Have Required validator trim strings to fix #2361
2017-05-18 22:44:15 +08:00
astaxie
69f0b94745 fix gosimple 2017-05-16 22:21:43 +08:00
astaxie
aa8f7bc146 fix ineffectual 2017-04-28 22:36:28 +08:00
Sergey Lanzman
37c1ffc57a add go simple support 2017-03-17 20:22:20 +02:00
miraclesu
c9cc642d37 validation: amend email test case 2017-03-12 20:27:09 +08:00
miraclesu
b34853f8cc validattion: add test case for email valid 2017-03-12 19:30:23 +08:00
miraclesu
d41f4c0a3a validation: fix email valid 2017-03-12 19:23:46 +08:00
chesedo
a8a2dffc59 Have Required validator trim strings to fix #2361
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
ysqi
77ff15ee33 Implement Error interface for validation error 2016-05-05 19:26:03 +08:00
FlamingTree
8bd1be8e29 Update validators.go
增加178号段
2016-03-04 11:16:47 +08:00
astaxie
f925bb9058 golint all the files 2016-01-18 00:18:21 +08:00
miraclesu
687266fb64 Add 179 to valid Phone number 2016-01-07 23:03:32 +08:00
miraclesu
21f767784b Add custom validation function doc 2016-01-07 22:55:12 +08:00
miraclesu
103ac3ee5b Add custom validation function 2016-01-07 22:42:04 +08:00
miraclesu
bef6bca397 Add function to set validation default messages 2016-01-05 21:14:35 +08:00
astaxie
4ba50e5df5 fix #1385 2015-10-12 20:50:58 +08:00
astaxie
2389bc72f9 golint validation 2015-09-13 00:13:19 +08:00
SimMan
06b25deab2 Update validators.go
Support virtual operators paragraph 170!
2015-07-04 17:55:01 +08:00
Wyatt Fang
dfe055c47c remove useless comments 2015-05-25 09:10:36 +08:00
Wyatt Fang
74b22649c8 remove the double isStruct/isStructPtr check 2015-05-25 09:10:36 +08:00
Wyatt Fang
4255630564 add Recursively validation 2015-05-25 09:10:36 +08:00
peeped
d7791ba837 Update validators.go
//176 中国联通
//177 中国电信
//145 中国联通
//147 中国移动
//149 中国电信
2015-05-25 09:10:36 +08:00
peeped
55b1d6a897 Update validators.go
edit mobile regular expression ; add 184 Section No.
2015-05-25 09:10:35 +08:00
pylemon
2c9363d29b add tests to ensure bool value require test always return true. 2015-05-25 09:10:35 +08:00
pylemon
91886a4547 bugfix: if a form field type is bool, valid Required should always return true instead of return its value. 2015-05-25 09:10:35 +08:00
Donal Byrne
a7e60c93dc Set ErrorsMap to nil in Validation.Clear function 2015-05-25 09:10:35 +08:00
astaxie
1d8afdc9c9 gofmt -s & go_vet 2015-05-25 09:10:34 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie
008ae39ff6 Merge branch 'master' into develop 2014-08-01 17:04:22 +08:00
Kevin Fourie
daf8b1101f Fixed docs: HasErrors is a method not a variable 2014-07-29 15:05:04 +02:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
S.W.H
ad8418720f bug fixed 2014-03-14 14:47:52 +08:00
asta.xie
7389f0507e fix #505 2014-03-12 15:56:04 +08:00
傅小黑
ce2984f09a add comments for testing, utils and validation packages 2014-02-07 16:07:31 +08:00
slene
83e6079ff7 fix MinSize / MaxSize / Length should use Rune Count 2013-10-16 22:49:06 +08:00
slene
278f8eb13e add ValidFormer interface, can custom valid 2013-10-09 20:26:23 +08:00
slene
ea9c2cebfd validation add more info to ValidationError, and put all messages tmpl to a map 2013-09-10 21:51:25 +08:00
miraclesu
97d99fcef2 Change tag valid func default key 2013-08-06 23:15:20 +08:00
miraclesu
6662eef2fd Support Match validate function for tag 2013-07-28 19:22:09 +08:00
miraclesu
dcdfaf36f1 Accept parameters more types 2013-07-28 16:59:35 +08:00
miraclesu
f490141217 Add some validate functions 2013-07-27 20:40:15 +08:00
miraclesu
d23700b919 update README 2013-07-24 12:36:46 +08:00
miraclesu
92db56c0cb add struct tag support 2013-07-24 12:20:42 +08:00
miraclesu
4c6163baa0 add funcmap 2013-07-24 01:20:24 +08:00