Commit graph

807 commits

Author SHA1 Message Date
alfonsoprado
c1b73a784d Add spanish translations 2020-02-11 10:06:16 -03: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
Dean Karn
691a5f5f25
Update README.md 2019-11-17 13:24:22 -08:00
Dean Karn
bec732e9de
Merge pull request #543 from go-playground/fix-required-without
fix required_*
2019-11-17 13:23:20 -08:00
Dean Karn
a346f2eea4 Merge branch 'master' into fix-required-without 2019-11-17 13:09:46 -08:00
Dean Karn
b11fb5f16e fix typo 2019-11-17 13:09:39 -08:00
Dean Karn
c0f05c7b3d fix required_* 2019-11-17 13:02:10 -08:00
Dean Karn
fe89c745f6
Merge pull request #542 from kaelanfouwels/master
Correction of documentation URL
2019-11-17 13:01:50 -08:00
Kaelan Thijs Fouwels
8678802a39
Correction of documentation URL
see https://github.com/go-playground/validator/issues/536
2019-11-17 19:24:39 +00:00
Jonathan Thom
432c17028a
Adds ability to validate oneof for space separated strings
Fixes Or Enhances https://github.com/go-playground/validator/issues/525.

**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:

* Adds the ability to match on space separated strings when using the
`oneof` validation. Space separted strings must be surrounded by single
quotes to be validated as one string. For example:

```
oneof='Awaiting Verification' 'Verified' 'Failed Verification'
```

passes validation for a field that is exactly `Failed Verification`
(though just `Failed` would...fail).

@go-playground/admins
2019-11-16 23:12:25 -08:00
sclaire-1
4be5d19c39
Edit CONTRIBUTING.md
Added a missing comma
2019-11-16 13:58:37 -08:00
Dean Karn
dbbe6958b3 update doc v9 url to v10 2019-11-11 12:51:46 -08:00