Commit graph

672 commits

Author SHA1 Message Date
andreas
8ed00e2e12 Change behavior instead of error, we Indirect it to get the non-pointer value 2018-11-03 09:36:56 +08:00
andreas
9eeca29136 detail error message on RegisterStructValidationCtx finding pointer arg 2018-11-03 06:52:33 +08:00
andreas
5b14fca011 Returns error when passing pointer to RegisterStructValidation 2018-11-02 22:17:07 +08:00
Dean Karn
3be3142400
Merge pull request #408 from kanozec/v9
Add Chinese(zh-tw) translations
2018-10-31 21:01:51 -07:00
Dean Karn
9f802bbd9b
Merge pull request #406 from frou/doc-registertagnamefunc
Document RegisterTagNameFunc more
2018-10-31 21:00:47 -07:00
kanozec
532cde1085 Add Chinese(zh-tw) translations 2018-10-30 18:38:15 +08:00
Duncan Holm
29b73202fe Document RegisterTagNameFunc more 2018-10-28 12:34:08 +00:00
Dean Karn
f8af4b15db
Merge pull request #404 from 44px/patch-1
Fix FieldError doc
2018-10-25 05:25:49 -07:00
Alexander Shepelin
868936b862
Fix FieldError doc 2018-10-25 08:40:37 +03:00
Dean Karn
16a72ff827
Merge pull request #388 from sakura1116vg/fix-doc
fix doc
2018-10-24 08:38:54 -07:00
sakura1116vg
9c31c8d387 fix doc 2018-08-24 20:08:39 +09:00
Dean Karn
e69e9a28bb
Update README.md 2018-08-13 07:34:31 -07:00
Dean Karn
4c0b0c3d27
Merge pull request #387 from wesselvanderlinden/v9
Add dutch translations
2018-08-13 07:34:03 -07:00
wessel.linden@gmail.com
1ae2003487 Add dutch translations 2018-08-11 19:44:00 +02:00
Dean Karn
ab2a8a9908
Update README.md 2018-07-09 08:35:10 -07:00
Dean Karn
e4e19c02df
Merge pull request #381 from foolin/v9
fix package name
2018-07-09 08:34:41 -07:00
foolin
a2ec0a8018 fix package name 2018-07-09 23:30:35 +08:00
Dean Karn
e055f4eb7f
Update README.md 2018-07-09 08:29:00 -07:00
Dean Karn
29f025ab2f
Merge pull request #380 from qdentity/struct-filtered-ctx-fix
Fix unused ctx in StructFilteredCtx
2018-07-09 08:27:08 -07:00
Damir Vandic
bdae516532
Fix unused ctx in StructFilteredCtx 2018-07-09 17:17:09 +02:00
Dean Karn
d942191d51
Update README.md 2018-07-09 07:10:15 -07:00
Dean Karn
5d3224279f
Merge pull request #379 from foolin/v9
add chinese  language for translations
2018-07-09 07:08:08 -07:00
foolin
11caf00975 Merge branch 'v9' of https://github.com/go-playground/validator into v9 2018-07-09 18:58:10 +08:00
Foolin
d1a82a6cdc add chinese translations 2018-07-09 11:35:10 +08:00
Foolin
801b2c40bc update 2018-07-09 10:41:30 +08:00
Foolin
83b055d6df add chinese lang 2018-07-06 17:32:31 +08:00
Dean Karn
ce9336f6e2
Update README.md 2018-06-29 08:00:13 -07:00
Dean Karn
c52a27f737
Merge pull request #377 from heatwole/add-html-url-encoding
Adding html and url encoding and updating docs
2018-06-29 07:58:18 -07:00
heatwole
0a9b75fbfd Adding html and url encoding and updating docs 2018-06-28 18:11:36 -05:00
Dean Karn
9d03e2526a
Merge pull request #376 from noibar/add_file_validation
doc: add file validation documentation
2018-06-28 13:31:57 -07:00
Noi Bar
ea9cb424fd
doc: add file validation documentation 2018-06-28 23:28:43 +03:00
Dean Karn
fb72538343
Update README.md 2018-06-28 12:28:26 -07:00
Dean Karn
71510749b8
Merge pull request #375 from noibar/add_file_validation
Add file path validation
2018-06-28 12:27:59 -07:00
Noi Bar
f2fdb60d7d Add file path validation 2018-06-27 16:04:38 +03:00
Dean Karn
f28cb45dc0
Update README.md 2018-05-14 07:57:39 -07:00
Dean Karn
3e51773f21
Merge pull request #363 from tengis617/fix-comment-typo
fixed typo in comment
2018-05-14 07:57:16 -07:00
Tengis B
8d3aa5bde2 ✏️ fixed typo in comment 2018-05-10 11:57:50 +07:00
Dean Karn
ffe836d736 Expanded numeric & number validations
It was originally intended for these to only be used on strings, however
it makes sense to also use them if your dealing with type interface{}

so now ints and floats return true for this validation also as they are
both numeric and numbers.

closes #356
2018-05-09 09:00:03 -07:00
Dean Karn
801c8790f3
Update README.md 2018-05-09 08:31:40 -07:00
Dean Karn
9848c01055
Merge pull request #362 from jadhub/domainnamefix
Fix for Email - Hostname is not validated correctly #359
2018-05-09 08:30:19 -07:00
Joachim Adomeit
379fb67047 Fix for Email - Hostname is not validated correctly #359 2018-05-09 16:50:03 +02:00
Dean Karn
ee0bbdea51 increment version 2018-05-05 09:24:17 -07:00
Dean Karn
54da7fa48f fix linting and spelling errors 2018-05-05 09:23:38 -07:00
Dean Karn
b297167b88
Merge pull request #361 from jservice-rvbd/unique-for-maps
Extend the unique tag to also cover map values.
2018-05-05 07:47:09 -07:00
Dean Karn
f459c64611
Merge pull request #358 from Ashtonian/patch-1
add missing `Engine()` to default validator for gin override example
2018-05-05 07:46:33 -07:00
James Service
d978a4b421 Undo whitespace changes from gofmt. 2018-05-04 13:34:51 +01:00
James Service
fc5fbce706 Add new unique functionality to docstring. 2018-05-04 13:23:26 +01:00
James Service
8ae3903dd3 Extend the unique tag to also cover map values. 2018-05-04 13:20:05 +01:00
Ashton Kinslow
9f62099643
add missing Engine() to default validator
to meet new interface requirements in gin
2018-05-01 16:19:59 -05:00
Dean Karn
14984d9132 Merge branch 'QuestofIranon-patch-1' into v9 2018-04-09 22:32:07 -07:00