Commit Graph

136 Commits

Author SHA1 Message Date
John Guo
f02372cf58 improve package gvalid 2021-08-01 23:50:44 +08:00
John Guo
7678540270 add bail rule for package gvalid 2021-08-01 22:12:44 +08:00
John Guo
0ddacdd7e2 add error code for components 2021-07-20 23:02:02 +08:00
John Guo
bb0a3e09d6 revert gerror usage for package gvalid 2021-06-26 18:44:59 +08:00
John Guo
d109706ad3 unify error package to gerror 2021-06-26 18:34:26 +08:00
John Guo
742c7913ea fix issue in function Parse for package ghttp 2021-06-02 21:12:27 +08:00
John Guo
1c09846d3e fix issue #1272 2021-06-01 20:09:52 +08:00
John Guo
578e7d634b comment updates for package gvalid 2021-05-29 16:47:39 +08:00
wanna
071a587755 Merge remote-tracking branch 'upstream/master' 2021-05-29 12:35:56 +08:00
wanna
c1db01425e fix remarks 2021-05-29 12:25:50 +08:00
wanna
7bfd48e2ab valid field length 2021-05-29 12:15:37 +08:00
John Guo
e80309af32 Merge branch 'master' of https://github.com/gogf/gf 2021-05-29 11:30:47 +08:00
John Guo
fa1814ff54 add custom rule fucntions feature for package gvalid 2021-05-29 11:30:34 +08:00
wanna
d7b8a2684a Revert ""gvalid length" compatible with only one parameter"
This reverts commit b2d3c7d1fd.
2021-05-29 11:28:26 +08:00
wanna
b2d3c7d1fd "gvalid length" compatible with only one parameter 2021-05-28 11:34:51 +08:00
John Guo
7d3233c7ad add context for custom validation rule function;add function WhereNot for gdb.Model 2021-05-19 22:33:50 +08:00
John Guo
fac9ab5c01 improve package gvalid 2021-05-19 19:00:34 +08:00
John Guo
420e0b9ca4 improve package gvalid 2021-05-19 13:29:40 +08:00
John Guo
ea0340db8e improve validation manager feature for package gvalid 2021-05-19 09:25:49 +08:00
John Guo
c8c28770fb change Error from struct to interface for package gvalid;error string update for package gdb 2021-05-18 20:51:31 +08:00
John Guo
2274a10cfd fx issue #1250 2021-05-17 19:59:34 +08:00
John Guo
cc1224e032 add context for package gvalid.Check* functions 2021-05-13 20:56:52 +08:00
John Guo
a326f4a989 improve package gi18n/gview/gvalid for more flexable i18n feature controll,add custom error configuration and i18n translation for custom error message 2021-05-13 00:16:45 +08:00
John Guo
9d362c3738 merge feature/improve_struct_validation 2021-05-12 00:15:53 +08:00
John Guo
b06580d343 improve struct validation for package gvalid 2021-05-12 00:01:52 +08:00
John Guo
a4240bdfb7 improve struct validation for package gvalid 2021-05-11 20:57:30 +08:00
John Guo
2e38416e12 improve struct embedded association case of with feature for package gdb 2021-05-11 20:00:50 +08:00
John Guo
034a3f1808 improve struct validation 2021-05-11 19:20:39 +08:00
jflyfox
524e3bedc7 improve empty value validation for required-with* patterns for package gvalid 2021-04-26 20:37:36 +08:00
John Guo
c4fc9f9618 fix issue #1204: improve validation support for time value, eg: gtime.Time/*gtime.Time, time.Time/*time.Time. 2021-03-30 16:06:20 +08:00
John Guo
9c70fe3be8 add more unit testing case for package gvalid 2021-03-30 15:25:26 +08:00
John Guo
482e093331 add map/[]map converting support for gconv.Scan;improve gconv.MaptoMaps 2021-03-23 17:53:20 +08:00
John Guo
20f2a6c003 add recursive validation feature of struct attribute for package gvalid for #1165 2021-03-10 23:28:34 +08:00
John Guo
d330afdd36 add required* rules checks for map/slice 2021-02-24 01:20:06 +08:00
John Guo
acf47f3907 orm with feature 2021-02-08 17:57:21 +08:00
John Guo
093034acd1 copyright comment update 2021-01-17 21:46:25 +08:00
jianchenma
73c68e48a1 improve package gvalid 2021-01-12 10:46:39 +08:00
John Guo
9f5a51e854 fix Strings/String function for package gvalid, issue:1077 2020-12-23 21:13:47 +08:00
John Guo
b7e41ec32c improve package gvalid 2020-12-09 21:00:30 +08:00
John
32101189a2 Merge branch 'master' of https://github.com/gogf/gf into develop 2020-11-29 21:46:36 +08:00
sunmoon
fa47b0306d Add 172-segment verification rules, add loose mobile number verification rules. 2020-11-28 12:23:18 +08:00
Jack
60fc9b6417 add gerror.ApiCurrent impements for gerror.Error 2020-11-25 19:06:29 +08:00
John
e06b62ecf2 add default value from struct tag for ghttp.Request 2020-11-08 15:44:04 +08:00
John
d178102f82 remove third party package 'structs'; improve performance for package internal/structs 2020-11-08 14:25:17 +08:00
John
5999f22f76 fix issue in embeded struct validation for package gvalid 2020-11-04 20:04:54 +08:00
Jack
4ae89dc9f6 improve package internal/structs 2020-10-30 22:04:34 +08:00
Jack
846646d92d improve json validation rule for package gvalid 2020-10-22 09:11:38 +08:00
Jack
43441a8218 allow custom validation rule validate empty or nil values 2020-10-21 00:08:36 +08:00
John
a585a26c39 improve custom rule function type for package gvalid 2020-09-29 23:25:20 +08:00
John
262f27748c improve custom validation rule feature for package gvalid 2020-09-22 08:45:22 +08:00
John
a29aef7e1c improve package gvalid for custom rule 2020-09-21 23:51:30 +08:00
Jack
acc0846cf3 fix issue in unit testing case of package gvalid 2020-08-24 22:26:12 +08:00
John
676e904ec6 improve package gvalid 2020-08-21 00:00:00 +08:00
John
49aa5c61bc improve package gvalid 2020-08-20 23:37:02 +08:00
John
a2272b852c improve package gvalid 2020-08-20 23:28:58 +08:00
John
1fa77630f9 improve package gvalid 2020-08-20 23:28:10 +08:00
John
a841c4cc05 improve package gvalid 2020-08-20 23:25:36 +08:00
john
8efc0ca0ea comment update for package gvalid 2020-07-12 10:33:24 +08:00
John
0f6f571ccb remove the space trimming of the validation value for package gvalid 2020-07-08 20:53:56 +08:00
john
c04be14cd9 add custom validation rule feature for package gvalid 2020-07-05 18:55:38 +08:00
john
e8d6d96883 fix issue in error field name lost for package gvalid 2020-06-14 17:28:48 +08:00
John
49d1e3dbaf fix issue of attribute name lost in package gvalid 2020-06-12 22:25:58 +08:00
John
bd8d3fca08 improve domain rule for package gvalid 2020-05-18 19:44:15 +08:00
john
9355bc73a2 improve package gvalid 2020-05-16 13:31:24 +08:00
John
6621edb04c improve i18n of chinese for package gvalid 2020-05-13 19:10:38 +08:00
John
b0c722e297 improve package gvalid 2020-05-10 22:34:16 +08:00
John
47a6284274 improve package gvalid 2020-05-10 22:32:10 +08:00
John
150b8edb70 improve package gvalid 2020-05-10 17:49:23 +08:00
John
aa5d3285eb improve package gvalid 2020-05-10 16:48:00 +08:00
john
993d6e3076 improve package gvalid 2020-05-10 10:56:11 +08:00
John
78ad9d8c2d improve error message of package gvalid 2020-05-10 09:05:52 +08:00
John
71b1f00dc5 improve package gdb/gstr/gvalid 2020-04-20 22:36:28 +08:00
John
07e65c14a9 improve unit testing cases 2020-03-19 23:53:03 +08:00
John
0b6d04485e improve unit testing cases 2020-03-19 22:56:12 +08:00
John
22540921b3 improve codes typing for package package gvalid 2020-03-17 22:23:29 +08:00
sunmoon
4fb01e68f7 移除字符串ip地址与Long类型互转的方法,修改中文长度校验的方法 2020-03-17 14:26:36 +08:00
sunmoon
2812a247aa 添加验证中英文混合字符串长度的判断规则,按utf8计算,一个中文算一个字符,cn-length,cn-min-length,cn-max-length 2020-03-17 11:19:43 +08:00
John
88684ca00a add panic if internal watcher creation fails for gfsnotify; improve codes and change comment from chinese to english for gdb 2020-02-10 20:37:53 +08:00
John
2bacc77224 improve JSON/XML parsing feature for ghttp.Request 2020-01-04 15:35:21 +08:00
John
604a10400d improve parameter parsing feature for ghttp.Request 2020-01-01 14:57:57 +08:00
John
fe5d2e5685 improve parameter parsing feature for ghttp.Request 2020-01-01 14:18:00 +08:00
John
671157cb70 release updates 2019-12-05 12:34:33 +08:00
myvfpx
419b58452f 修改身份证尾数验证规则,新增银行卡号验证规则 2019-09-24 10:38:20 +08:00
myvfpx
b1835ea4e8 添加身份证号尾数验证规则,添加银行卡号验证规则 2019-09-24 10:21:37 +08:00
john
19a856549a improve codes details 2019-09-13 22:08:18 +08:00
John
b01add2925 update project structure 2019-07-29 21:01:19 +08:00