Dean Karn
dbfcad250f
Merge pull request #583 from metalinspired/master
...
Add validators that check if string does not start/end with supplied parameter
2020-05-20 22:46:34 -07:00
Dean Karn
07f2314af2
Merge pull request #582 from alfonsoprado/feature/spanish-translation-v10
...
validator.v10: Add spanish translations
2020-05-20 22:43:54 -07:00
Dean Karn
a5e9e63a9a
Merge pull request #579 from psampaz/readme_updates
...
Updated version and go doc link
2020-05-20 22:42:52 -07:00
Dean Karn
8203121676
Merge pull request #578 from psampaz/validations_list
...
Add list of baked in validations in README.md
2020-05-20 22:41:53 -07:00
Dean Karn
175275dfea
Merge pull request #577 from psampaz/travis_1_13_7
...
Run tests on latest stable version 1.13.7
2020-05-20 22:41:00 -07:00
Milan Divkovic
f3b347cc29
Add validators that check if string does not start/end with supplied parameter
2020-02-19 10:15:03 +01:00
alfonsoprado
a98911a366
fix spanish translations
2020-02-11 10:42:39 -03:00
alfonsoprado
c1b73a784d
Add spanish translations
2020-02-11 10:06:16 -03:00
Pantelis Sampaziotis
afacb47f2b
Updated version and go doc link
2020-02-11 12:16:44 +02:00
Pantelis Sampaziotis
9f175c7ece
Add list of validation in README
2020-02-10 21:47:11 +02:00
Pantelis Sampaziotis
8a19420dcf
Run tests on latest stable version 1.13.7
2020-02-09 19:52:24 +02:00
Dean Karn
c68441b7f4
Merge pull request #575 from psampaz/datetime
...
Add datetime validation
2020-02-09 09:35:38 -08:00
Pantelis Sampaziotis
912fcd16a8
resovle conflict
2020-02-09 19:30:16 +02:00
Pantelis Sampaziotis
14f963703b
Add datetime validation
2020-02-09 19:28:20 +02:00
Dean Karn
b7430f8e39
Merge pull request #571 from psampaz/json
...
Add isJSON validation
2020-02-09 09:18:51 -08:00
Dean Karn
0c80f876cd
Merge branch 'master' into json
2020-02-09 09:11:31 -08:00
Dean Karn
68e8e137fa
Merge pull request #563 from terala/master
...
Add hostname_port validator feature
2020-02-09 09:02:02 -08:00
Dean Karn
1f676c755a
Merge branch 'master' into master
2020-02-09 08:59:24 -08:00
Dean Karn
fa149de298
Merge pull request #569 from Rustery/feature/russian-translation
...
Added russian translation
2020-02-09 08:55:09 -08:00
Dean Karn
fdd54d3fc2
Merge pull request #572 from psampaz/lowercase
...
Add isLowercase and isUppercase validation
2020-02-09 08:54:35 -08:00
Dean Karn
b541462b5a
Merge pull request #574 from shenyiling/master
...
fix: typo
2020-02-09 08:53:58 -08:00
Pantelis Sampaziotis
2109f86248
Update documenation
2020-02-07 16:32:30 +02:00
Pantelis Sampaziotis
9e58bcdee1
Empty strings are not lowercase or uppercase
2020-02-07 16:30:58 +02:00
shenyiling
6d2c659585
fix: typo
2020-02-06 18:28:56 +08:00
Pantelis Sampaziotis
5b51bff4e6
Add isLowercase and isUppercase valitation
2020-02-05 22:39:47 +02:00
Pantelis Sampaziotis
581d2698d5
Added isJSON validation
2020-02-04 18:04:58 +02:00
Rustam
eb11afd9a8
Added russian translation
2020-01-22 16:08:32 +03:00
Ravi Terala
a1ac82a865
Add documentation
2020-01-17 09:52:57 -08:00
Ravi Terala
893747e5ee
Add hostname_port validator feature
2020-01-03 11:30:08 -08:00
Dean Karn
fb6c45823a
Update README.md
2019-12-24 21:43:24 -08:00
Dean Karn
5b97da4cbf
Merge pull request #560 from go-playground/cherry-pick-v9
...
cherry picking v9
2019-12-24 21:41:40 -08:00
Dean Karn
c2546fb355
Add test + docs for FieldLevel.GetTag
2019-12-24 21:16:08 -08:00
richi
f8a081fd83
Added the function GetTag.
...
The function returns the name of the tag on which the function was called.
2019-12-24 21:15:37 -08:00
Shi Han NG
e73ec5f5ab
Update doc for unique=field
2019-12-24 20:28:58 -08:00
Shi Han NG
8f604265e0
Implement unique=FieldName
2019-12-24 20:28:41 -08:00
Jean-Philippe Moal
1effcb06a7
Clarify and complete tag names example
2019-12-24 20:16:53 -08:00
Jean-Philippe Moal
703c0b681a
Rework the non standard validators documentation
2019-12-24 20:16:36 -08:00
Taylor
e7c70798c9
Add e.164 support
2019-12-24 20:08:33 -08:00
Dean Karn
a6a294bfeb
Merge pull request #541 from JonathanWThom/jt/space-separated-oneof
...
Adds ability to validate oneof for space separated strings
2019-12-24 10:54:55 -08:00
Dean Karn
c067a8f197
Merge pull request #539 from sclaire-1/master
...
Edit CONTRIBUTING.md
2019-12-24 10:38:25 -08:00
Dean Karn
1d93fb999e
Merge pull request #547 from atomicleads/master
...
Added boolean type support for “eq” validator
2019-12-24 10:37:35 -08:00
Dean Karn
5356060ec3
Merge pull request #548 from JonathanWThom/jt/datauri
...
Improves accuracy of datauri regex
2019-12-24 10:35:19 -08:00
Dean Karn
361bf41fb9
Merge pull request #550 from Streppel/patch-1
...
removing unecessary type conversion
2019-12-24 10:32:37 -08:00
Dean Karn
ae15ced5e1
Merge pull request #558 from whatvn/master
...
error is always nil
2019-12-24 10:31:05 -08:00
Nguyễn Văn Hưng
da6897303a
error is always nil
2019-12-18 17:57:44 +07:00
Streppel
0849b1840e
removing unecessary type conversion
2019-11-27 08:47:07 -03:00
Jonathan Thom
bb5fd36827
Improves accuracy of datauri regex
...
Fixes Or Enhances https://github.com/go-playground/validator/issues/518 .
Make sure that you've checked the boxes below before you submit PR:
[x] Tests exist or have been written that cover this particular change.
Change Details:
The datauri validation was not allowing certain valid strings; this
commit updates the regex to meet RFC 2397. I drew heavily on this gist
https://gist.github.com/khanzadimahdi/bab8a3416bdb764b9eda5b38b35735b8 ,
but had to make a few updates to remove some negative lookaheads (which
Go doesn't allow afaik), and to account for the way the `isDataURI`
function works - it validates the base64 separately from the other parts
of the uri.
@go-playground/admins
2019-11-21 21:26:59 -08:00
Jonathan Thom
685d3e21f3
Makes regex constant & moves single quote replace logic to parseOneOfParam2
2019-11-20 20:04:39 -08:00
Dmitry M. Gavrovsky
d149847e8a
test case for “eq” comparing boolean values #547
2019-11-19 21:07:19 +02:00
Dmitry M. Gavrovsky
dfc652373a
Added boolean type support for “eq” validator
2019-11-19 21:00:18 +02:00