Commit graph

746 commits

Author SHA1 Message Date
Talha Ansari
2367d307c5
Fix the import path for non-standard validators
Issue [#521](https://github.com/go-playground/validator/issues/521)
2019-09-29 11:29:42 -04:00
Dean Karn
556b9da3c0
Update README.md 2019-07-12 08:35:03 -07:00
Dean Karn
ab2452c1ce
Merge pull request #489 from tobiassjosten/patch-1
Fixed typo
2019-07-12 08:31:49 -07:00
Dean Karn
d6546ee64a
Merge pull request #484 from leafduo/v9
Make `required_without` work with pointer
2019-07-12 08:31:35 -07:00
Tobias Sjösten
9f6c1cdebf
Fixed typo 2019-07-12 09:22:34 +02:00
Zuyang Kou
54db112759 Make required_without work with pointer
Fix #483, #473
2019-06-14 03:06:35 +08:00
Dean Karn
884d31b8ca
Update README.md 2019-05-23 07:57:40 -07:00
Dean Karn
56b7caa399
Merge pull request #469 from mashmooli/v9
Add `required_with`, `required_with_all`, `required_without`, `required_without_all` validators
2019-05-23 07:57:18 -07:00
Dean Karn
727e327e57
Merge pull request #471 from Zeroen/fix-hostname-regexp
fix hostname regex
2019-05-23 07:55:20 -07:00
criherna
38f91ec1a1 Merge branch 'master' into fix-hostname-regexp 2019-05-16 15:28:29 +02:00
criherna
9dedb06449 fix hostname regex 2019-05-16 13:31:59 +02:00
A Mashmooli
8c221696bb simplify required check field kind 2019-05-01 16:39:21 +04:30
A Mashmooli
d89801fc29 fix required_* test 2019-05-01 12:31:15 +04:30
A Mashmooli
de92ea70b4 fix required_* test 2019-05-01 09:18:34 +04:30
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
e25e66164b
Merge pull request #460 from masseelch/patch-1
Update main.go
2019-04-30 07:59:19 -07:00
A Mashmooli
3ec10f9949 add required_without_all validator 2019-04-29 16:05:30 +04:30
A Mashmooli
03bfd38cc1 add required_without validator 2019-04-29 16:01:11 +04:30
A Mashmooli
ebfddc5784 add required_with_all validator 2019-04-29 15:46:48 +04:30
A Mashmooli
1e6bddb6b3 fix comment 2019-04-29 15:35:35 +04:30
A Mashmooli
adbd5e9b33 add required_with validator 2019-04-29 15:32:37 +04:30
Dean Karn
46b4b1e301
Update README.md 2019-03-31 06:31:25 -07:00
Dean Karn
c0a5f73741
Merge pull request #463 from benpaxton-hf/fix-email-regex
Fix email regex
2019-03-31 06:29:18 -07:00
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
5ed5b2eeeb
Merge pull request #451 from rucas/v9
better SSN regex
2019-03-31 06:26:33 -07:00
Dean Karn
ce0e3d1c6d
Merge pull request #421 from andreiavrammsd/notblank
Add NotBlank validation function.
2019-03-31 06:25:27 -07:00
Ben Paxton
9099388d96 Fix email regex 2019-03-27 17:01:11 +00: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
Jannik C
8a9497f4bd
Update main.go
Just a typo.
2019-03-22 09:36:23 +01: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
rucas
dbd65cccbc better SSN regex
* does not allow 00 group number
* does not allow 0000 serial number
2019-03-05 16:01:59 -08: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