A Mashmooli
5a98da4e8c
add required_with to doc
6 years ago
Dean Karn
e25e66164b
Merge pull request #460 from masseelch/patch-1
...
Update main.go
6 years ago
A Mashmooli
3ec10f9949
add required_without_all validator
6 years ago
A Mashmooli
03bfd38cc1
add required_without validator
6 years ago
A Mashmooli
ebfddc5784
add required_with_all validator
6 years ago
A Mashmooli
1e6bddb6b3
fix comment
6 years ago
A Mashmooli
adbd5e9b33
add required_with validator
6 years ago
Dean Karn
46b4b1e301
Update README.md
6 years ago
Dean Karn
c0a5f73741
Merge pull request #463 from benpaxton-hf/fix-email-regex
...
Fix email regex
6 years ago
Dean Karn
9cbbfdd691
Merge pull request #461 from alexbilbie/patch-1
...
Updated doc.go with uuid_rfc4122 examples
6 years ago
Dean Karn
9980009549
Merge pull request #459 from thcipriani/v9
...
Add `startswith` and `endswith` validators
6 years ago
Dean Karn
5ed5b2eeeb
Merge pull request #451 from rucas/v9
...
better SSN regex
6 years ago
Dean Karn
ce0e3d1c6d
Merge pull request #421 from andreiavrammsd/notblank
...
Add NotBlank validation function.
6 years ago
Ben Paxton
9099388d96
Fix email regex
6 years ago
Alex Bilbie
ab7e4092fb
Grammar fix
6 years ago
Alex Bilbie
a918b74270
Updated doc.go with uuid_rfc4122 examples
6 years ago
Jannik C
8a9497f4bd
Update main.go
...
Just a typo.
6 years ago
Tyler Cipriani
3945da16ee
Add `startswith` and `endswith` validators
...
`HasPrefix` and `HasSuffix` are both part of the `strings` package.
These seem like generally useful validations to include and cover some
subset of the use-cases of a general regex validator without having any
of the problems outlined by the validator docs.
6 years ago
rucas
dbd65cccbc
better SSN regex
...
* does not allow 00 group number
* does not allow 0000 serial number
6 years ago
Andrei Avram
f2ac4efd57
Update non standard validation docs.
6 years ago
Dean Karn
b199fa0642
Update README.md
6 years ago
Dean Karn
1b32ac03ca
Merge pull request #450 from agalal/add-dir-validator
...
Add validation for directories
6 years ago
Dean Karn
e10c2c9ddb
Merge pull request #440 from RaMin0/feature/numeric_geo_coords
...
Allow latitude/longitude validation for numeric values
6 years ago
Dean Karn
6cdb5bb480
Merge pull request #446 from Esslamb/v9
...
Fixed Typo
6 years ago
Dean Karn
cf7eb8fabc
Merge pull request #443 from kszafran/patch-1
...
Fix typos
6 years ago
Andrei Avram
1d286c8332
Define NotBlank as non standard validator.
6 years ago
Andrei Avram
faaace938d
Add documentation.
6 years ago
Andrei Avram
6b29637aaa
Add NotBlank validation function.
...
For validating if the current field has a value or length greater than zero.
6 years ago
Abdallah Galal
94ba218708
Add validation for directories
6 years ago
Esslam
891b7807f8
Fixed Typos
6 years ago
Krzysztof Szafrański
fdbd8ba577
Fix typos
6 years ago
Ramy Aboul Naga
d1d2da5f73
Fix typo in isLongitude test
6 years ago
Ramy Aboul Naga
cbd5cf6393
Use type switch in favor of fmt.Sprint
6 years ago
Dean Karn
774d09c386
Update README.md
6 years ago
Rohan Sathe
76020d061e
Fixes #26 ( #437 )
6 years ago
Ramy Aboul Naga
52ea448998
Allow latitude/longitude validation for numeric values
6 years ago
Dean Karn
cdd5c28d21
Update README.md
6 years ago
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
6 years ago
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'.
6 years ago
Dean Karn
0277b12d53
Update README.md
6 years ago
Dean Karn
bc745fba53
Merge pull request #430 from akm/japanese_translation
...
Add Japanese translation
6 years ago
Dean Karn
35d48effb5
Merge pull request #419 from holyspectral/unique_translation
...
Add English translation for "unique" validation.
6 years ago
Dean Karn
df119a3494
Merge pull request #427 from AGPDev/v9
...
fix import avoid wrong type when apply custom translates.
6 years ago
Dean Karn
c7005d73ef
Merge pull request #429 from leodido/feat/is-urn
...
URN (RFC 2141) validation
6 years ago
akm
578166faf7
Implement translation of ne-items
6 years ago
akm
37128de86f
Add japanese translation
6 years ago
Leonardo Di Donato
2bb313f957
Docs: Update URN RFC2141 documentation
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
6 years ago
Leonardo Di Donato
0482874b86
Update: Rename urn tag into urn_rfc2141
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
6 years ago
Leonardo Di Donato
c5423e4116
New: URN
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
6 years ago
Anderson Guilherme Porto
20357ae332
fix import avoid wrong type when apply custom translates.
6 years ago