Commit graph

711 commits

Author SHA1 Message Date
Dean Karn
ce0e3d1c6d
Merge pull request #421 from andreiavrammsd/notblank
Add NotBlank validation function.
2019-03-31 06:25:27 -07:00
Andrei Avram
f2ac4efd57 Update non standard validation docs. 2019-02-12 22:00:29 +02:00
Dean Karn
b199fa0642
Update README.md 2019-02-12 07:25:59 -08:00
Dean Karn
1b32ac03ca
Merge pull request #450 from agalal/add-dir-validator
Add validation for directories
2019-02-12 07:19:04 -08:00
Dean Karn
e10c2c9ddb
Merge pull request #440 from RaMin0/feature/numeric_geo_coords
Allow latitude/longitude validation for numeric values
2019-02-12 07:18:23 -08:00
Dean Karn
6cdb5bb480
Merge pull request #446 from Esslamb/v9
Fixed Typo
2019-02-12 07:18:07 -08:00
Dean Karn
cf7eb8fabc
Merge pull request #443 from kszafran/patch-1
Fix typos
2019-02-12 07:17:52 -08:00
Andrei Avram
1d286c8332 Define NotBlank as non standard validator. 2019-02-10 16:44:02 +02:00
Andrei Avram
faaace938d Add documentation. 2019-02-10 16:44:02 +02:00
Andrei Avram
6b29637aaa Add NotBlank validation function.
For validating if the current field has a value or length greater than zero.
2019-02-10 16:44:02 +02:00
Abdallah Galal
94ba218708 Add validation for directories 2019-02-08 16:03:16 +01:00
Esslam
891b7807f8 Fixed Typos 2019-02-05 15:48:19 +00:00
Krzysztof Szafrański
fdbd8ba577
Fix typos 2019-01-31 16:06:25 +02:00
Ramy Aboul Naga
d1d2da5f73 Fix typo in isLongitude test 2019-01-28 11:15:08 +01:00
Ramy Aboul Naga
cbd5cf6393 Use type switch in favor of fmt.Sprint 2019-01-28 11:14:55 +01:00
Dean Karn
774d09c386
Update README.md 2019-01-27 21:00:45 -08:00
Rohan Sathe
76020d061e Fixes #26 (#437) 2019-01-27 21:00:13 -08:00
Ramy Aboul Naga
52ea448998 Allow latitude/longitude validation for numeric values 2019-01-26 18:06:17 +01:00
Dean Karn
cdd5c28d21
Update README.md 2019-01-08 20:40:31 -08:00
franklin
91d81934ab Add baked in validators for containsfield and excludesfield (#424)
* Add baked in validators for containsfield and excludesfield

* Add ContainsAndExcludes test

* Add NotEqual tests before AssertError

* Add tests for missing fields

* containsfield -> fieldcontains, excludesfield -> fieldexcludes
2019-01-08 20:31:28 -08:00
Takeshi Akima
9af2aa2cc3 Fixes Japanese translation (#433)
* Use ja locale instead of en in ja_test.go

* Comment out calling ut.AddCardinal with locales.PluralRuleOne

because cardinal plural rule 'One' does not exist for locale 'ja'.
2019-01-08 20:28:15 -08:00
Dean Karn
0277b12d53
Update README.md 2018-12-08 08:39:51 -08:00
Dean Karn
bc745fba53
Merge pull request #430 from akm/japanese_translation
Add Japanese translation
2018-12-08 08:37:37 -08:00
Dean Karn
35d48effb5
Merge pull request #419 from holyspectral/unique_translation
Add English translation for "unique" validation.
2018-12-08 08:06:42 -08:00
Dean Karn
df119a3494
Merge pull request #427 from AGPDev/v9
fix import avoid wrong type when apply custom translates.
2018-12-08 08:00:10 -08:00
Dean Karn
c7005d73ef
Merge pull request #429 from leodido/feat/is-urn
URN (RFC 2141) validation
2018-12-08 07:58:09 -08:00
akm
578166faf7 Implement translation of ne-items 2018-12-05 14:48:43 +09:00
akm
37128de86f Add japanese translation 2018-12-05 13:30:45 +09:00
Leonardo Di Donato
2bb313f957
Docs: Update URN RFC2141 documentation
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-04 14:47:31 +01:00
Leonardo Di Donato
0482874b86
Update: Rename urn tag into urn_rfc2141
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-04 10:35:01 +01:00
Leonardo Di Donato
c5423e4116
New: URN
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-04 03:42:15 +01:00
Anderson Guilherme Porto
20357ae332 fix import avoid wrong type when apply custom translates. 2018-11-29 11:26:59 -02:00
Dean Karn
6079fcc186
Merge pull request #423 from mitsuyoshi4/v9
fixed typo
2018-11-21 07:32:27 -08:00
満行芳樹
aaf2c06dbe fixed typo 2018-11-19 22:41:55 -08:00
Sam Wang
df107f0184 Add English translation for "unique" validation. 2018-11-14 21:33:36 +00:00
Dean Karn
1fa3c8d633 fix indonesian translation test 2018-11-04 06:48:46 -08:00
Dean Karn
9c187c39d8
Merge pull request #414 from sulthonzh/v9
Add Indonesian translations
2018-11-04 06:40:15 -08:00
Dean Karn
1730262625
Merge pull request #413 from suekto-andreas/v9
Fix #352 Returns error when passing pointer to RegisterStructValidation
2018-11-04 06:27:07 -08:00
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
Sulthon Zainul Habib
38f9a73e57 Add Indonesian translations 2018-11-02 23:23:46 +07: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