Commit graph

146 commits

Author SHA1 Message Date
alessmar
dd2857a4cb
Credit card validation (#924) 2022-05-01 08:17:59 -07:00
Jacob Hochstetler
c0195b2b40
added excluded_if/excluded_unless tags + tests (#847) 2022-05-01 07:59:09 -07:00
jtseng-godaddy
06ec79d987
Including regex version validation (#831) 2022-01-01 17:38:59 -08:00
Markus Tenghamn
8fe074c546
Added ulid validation (#826) 2022-01-01 17:30:17 -08:00
Kazuki Onishi
ec2071b383
Add DNS RFC 1035 label format validator (#833) 2022-01-01 17:27:23 -08:00
András Czigány
42525d89ab
document thread safety and recommended singleton usage (#809) 2021-08-08 15:46:25 -07:00
Xavier Vello
a67baa74f1
feature/boolean (#804) 2021-08-08 15:44:23 -07:00
steveorourke
e40bece342
Add support for jwt validation (#783) 2021-07-25 21:10:57 -07:00
Oleksii Kulikov
c2066206fe
Add BIC ISO format validator (#758) 2021-05-06 06:38:34 -07:00
Josh Slate
add373fff7
feat: add bcp 47 language tag validator (#730) 2021-04-06 21:01:39 -07:00
krhubert
f32fea830e
Add country code validation (#615) 2020-09-27 15:46:23 -07:00
Elias Rodrigues
4407f4dea0
Add checksum validation for Ethereum address (#630) 2020-09-27 12:04:32 -07:00
Dean Karn
8154ee6ca8
Merge branch 'master' into master 2020-09-27 11:50:24 -07:00
Dean Karn
f0805c61ba
Merge pull request #641 from math-nao/master
Add support for time zone validation
2020-09-27 11:47:15 -07:00
Dean Karn
76981ccf75
Merge pull request #642 from elias19r/issue-584-add-support-for-time-duration-type
Add support for time.Duration type
2020-09-27 11:45:09 -07:00
hzw
44a150f359 add required_if and required_unless 2020-09-03 20:34:19 +08:00
math-nao
7dbe685a02 Update timeZone tag name to timezone 2020-08-02 13:59:46 +02:00
Elias Rodrigues
fc1b28803a Update docs for baked-in time.Duration supported tags 2020-07-25 23:05:52 -03:00
math-nao
44f3347f13 Add support for time zone validation 2020-07-25 19:39:27 +02:00
Taylor
07a4b7aa38 Add wiki link for E.164 2020-07-07 14:19:33 -06:00
Taylor
0bfda52ce1 Add e164 to doc.go 2020-07-07 14:16:52 -06:00
Dean Karn
0ab8e0351d
Merge pull request #607 from johnbailon/number_documentation
Add number validator to documentation
2020-05-20 22:47:30 -07:00
John Bailon
198646cbd1 Add number validator in documentation 2020-05-02 16:16:55 +08:00
John Bailon
7807a1f36f Add number validator in documentation 2020-05-02 16:12:58 +08: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
Pantelis Sampaziotis
14f963703b Add datetime validation 2020-02-09 19:28:20 +02:00
Dean Karn
0c80f876cd Merge branch 'master' into json 2020-02-09 09:11:31 -08:00
Dean Karn
1f676c755a
Merge branch 'master' into master 2020-02-09 08:59:24 -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
Pantelis Sampaziotis
2109f86248 Update documenation 2020-02-07 16:32:30 +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
Ravi Terala
a1ac82a865 Add documentation 2020-01-17 09:52:57 -08:00
Shi Han NG
e73ec5f5ab Update doc for unique=field 2019-12-24 20:28:58 -08:00
Jean-Philippe Moal
703c0b681a Rework the non standard validators documentation 2019-12-24 20:16:36 -08: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
Dean Karn
dbbe6958b3 update doc v9 url to v10 2019-11-11 12:51:46 -08:00
A Mashmooli
22eebe9ac5 add required_without_all to doc 2019-05-01 09:08:05 +04:30
A Mashmooli
a9e1a9226c add required_without to doc 2019-05-01 09:06:41 +04:30
A Mashmooli
678f8d753f add required_with_all to doc 2019-05-01 09:03:45 +04:30
A Mashmooli
5a98da4e8c add required_with to doc 2019-05-01 08:49:03 +04:30
Dean Karn
9cbbfdd691
Merge pull request #461 from alexbilbie/patch-1
Updated doc.go with uuid_rfc4122 examples
2019-03-31 06:28:54 -07:00
Dean Karn
9980009549
Merge pull request #459 from thcipriani/v9
Add `startswith` and `endswith` validators
2019-03-31 06:27:38 -07:00
Dean Karn
ce0e3d1c6d
Merge pull request #421 from andreiavrammsd/notblank
Add NotBlank validation function.
2019-03-31 06:25:27 -07:00
Alex Bilbie
ab7e4092fb
Grammar fix 2019-03-25 16:45:35 +00:00
Alex Bilbie
a918b74270
Updated doc.go with uuid_rfc4122 examples 2019-03-25 16:43:28 +00:00
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.
2019-03-15 15:30:07 -06:00
Andrei Avram
f2ac4efd57 Update non standard validation docs. 2019-02-12 22:00:29 +02: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