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
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
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
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
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
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
astaxie
a144769515
update the documents & comments
2014-08-18 16:41:43 +08: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
slene
83e6079ff7
fix MinSize / MaxSize / Length should use Rune Count
2013-10-16 22:49:06 +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
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
4c6163baa0
add funcmap
2013-07-24 01:20:24 +08:00
miraclesu
d19de30d9c
add test
2013-07-21 23:46:18 +08:00
miraclesu
6d05163c9f
add validation funcs
2013-07-21 01:37:24 +08:00
miraclesu
a41cd17092
add validators
2013-07-19 16:49:28 +08:00