Dean Karn
ae15ced5e1
Merge pull request #558 from whatvn/master
...
error is always nil
5 years ago
Nguyễn Văn Hưng
da6897303a
error is always nil
5 years ago
Streppel
0849b1840e
removing unecessary type conversion
5 years ago
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
5 years ago
Jonathan Thom
685d3e21f3
Makes regex constant & moves single quote replace logic to parseOneOfParam2
5 years ago
Dmitry M. Gavrovsky
d149847e8a
test case for “eq” comparing boolean values #547
5 years ago
Dmitry M. Gavrovsky
dfc652373a
Added boolean type support for “eq” validator
5 years ago
Dean Karn
691a5f5f25
Update README.md
5 years ago
Dean Karn
bec732e9de
Merge pull request #543 from go-playground/fix-required-without
...
fix required_*
5 years ago
Dean Karn
a346f2eea4
Merge branch 'master' into fix-required-without
5 years ago
Dean Karn
b11fb5f16e
fix typo
5 years ago
Dean Karn
c0f05c7b3d
fix required_*
5 years ago
Dean Karn
fe89c745f6
Merge pull request #542 from kaelanfouwels/master
...
Correction of documentation URL
5 years ago
Kaelan Thijs Fouwels
8678802a39
Correction of documentation URL
...
see https://github.com/go-playground/validator/issues/536
5 years ago
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
5 years ago
sclaire-1
4be5d19c39
Edit CONTRIBUTING.md
...
Added a missing comma
5 years ago
Dean Karn
dbbe6958b3
update doc v9 url to v10
5 years ago
Dean Karn
7e57ca0cf5
convert to go modules
5 years ago
Dean Karn
cd1bd58169
Update README.md
5 years ago
Dean Karn
883a9e06c8
Merge pull request #523 from go-playground/fixes
...
Fixes
5 years ago
Dean Karn
9593a0f77e
add test for new nil validation
5 years ago
Dean Karn
06f92248de
linting cleanup
5 years ago
Dean Karn
6484d9f2fb
fix required_with_*
5 years ago
Dean Karn
cc25246f01
fix required_without_*
5 years ago
Dean Karn
51fcc303b3
Merge pull request #507 from UgurAsaner/v9
...
Add Turkish translations
5 years ago
Dean Karn
205b733988
Merge pull request #522 from teejays/v9
...
Issue #521 : Non-standard validators import path fix
5 years ago
Talha Ansari
4e2a13b9bf
Updated tests to reflect the import change
5 years ago
Talha Ansari
2367d307c5
Fix the import path for non-standard validators
...
Issue [#521 ](https://github.com/go-playground/validator/issues/521 )
5 years ago
baran.asaner
80a8449877
Add Turkish translations
5 years ago
Dean Karn
556b9da3c0
Update README.md
5 years ago
Dean Karn
ab2452c1ce
Merge pull request #489 from tobiassjosten/patch-1
...
Fixed typo
5 years ago
Dean Karn
d6546ee64a
Merge pull request #484 from leafduo/v9
...
Make `required_without` work with pointer
5 years ago
Tobias Sjösten
9f6c1cdebf
Fixed typo
5 years ago
Zuyang Kou
54db112759
Make `required_without` work with pointer
...
Fix #483 , #473
5 years ago
Dean Karn
884d31b8ca
Update README.md
6 years ago
Dean Karn
56b7caa399
Merge pull request #469 from mashmooli/v9
...
Add `required_with`, `required_with_all`, `required_without`, `required_without_all` validators
6 years ago
Dean Karn
727e327e57
Merge pull request #471 from Zeroen/fix-hostname-regexp
...
fix hostname regex
6 years ago
criherna
38f91ec1a1
Merge branch 'master' into fix-hostname-regexp
6 years ago
criherna
9dedb06449
fix hostname regex
6 years ago
A Mashmooli
8c221696bb
simplify required check field kind
6 years ago
A Mashmooli
d89801fc29
fix required_* test
6 years ago
A Mashmooli
de92ea70b4
fix required_* test
6 years ago
A Mashmooli
22eebe9ac5
add required_without_all to doc
6 years ago
A Mashmooli
a9e1a9226c
add required_without to doc
6 years ago
A Mashmooli
678f8d753f
add required_with_all to doc
6 years ago
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