t0250361
4633d16a2f
Added Support of skipUnless Validator
3 years ago
t0250361
c12e80a0b5
#908|Add Support of SkipUnless
3 years ago
Sec Cake
4f55647bd7
Added some hash validation ( #875 )
3 years ago
Vuong
7fa836dc0a
Add Vietnamese translations ( #820 )
3 years ago
Lauris BH
f09500fca7
Fix support for aliased time.Time types ( #890 )
3 years ago
alessmar
dd2857a4cb
Credit card validation ( #924 )
3 years ago
Jacob Hochstetler
c0195b2b40
added excluded_if/excluded_unless tags + tests ( #847 )
3 years ago
jtseng-godaddy
06ec79d987
Including regex version validation ( #831 )
3 years ago
Markus Tenghamn
8fe074c546
Added ulid validation ( #826 )
3 years ago
Kazuki Onishi
ec2071b383
Add DNS RFC 1035 label format validator ( #833 )
3 years ago
Markus Tenghamn
19f8e61dba
Fixed country_code validation to properly handle strings ( #873 )
3 years ago
Metin Oğurlu
d4271985b4
Feature/currency codes ( #811 )
3 years ago
Xavier Vello
a67baa74f1
feature/boolean ( #804 )
3 years ago
Oleg Nikachev
44c2696cbd
Minor fixes. ( #798 )
...
Fixed README.md. Added missing tags.
Fixed function names in comments in baked_in.go.
Fixed error strings in validator_instance.go (should not be
capitalized).
Fixed twice imported assert package in validator_test.go.
3 years ago
steveorourke
e40bece342
Add support for jwt validation ( #783 )
3 years ago
N/A
af8b8d1c88
Add iso-3166-2 ( #788 )
3 years ago
Dean Karn
d07eb88fb0
Pr cleanup ( #767 )
...
* cleanup after merging PRs
* Add maintainer info +
4 years ago
ѵµσɳɠ
a53d64fc35
Postcode validator for value and field ( #759 )
...
* Postcode validator for value and field
* Add translation for postcode rules
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
4 years ago
Oleksii Kulikov
c2066206fe
Add BIC ISO format validator ( #758 )
4 years ago
Zane DeGraffenried
31dd62f1c9
Fix boolean support for required_if, required_unless and eqfield ( #754 )
...
* Fix boolean support in requireCheckFieldValue, isEqField and isNeField
* Added tests
Co-authored-by: Zane DeGraffenried <zane.degraffenried@gettyimages.com>
4 years ago
Josh Slate
add373fff7
feat: add bcp 47 language tag validator ( #730 )
4 years ago
Peperoncino
5b8f3b8a0b
corresponds to boolean value of nefield ( #712 )
4 years ago
João Francisco
514c9dbd77
Fix excludedWithoutAll comment ( #673 )
...
Function comment mistakenly referred to a different function
4 years ago
Dean Karn
456221b630
Fix time.Duration parsing for int param ( #678 )
...
This fixes an issue where if the param of a time.Durtion type is specified
as an integer, denoting nanosecond precision, instead of time duration
string the validation would panic.
the fixes ensures it falls back to the previous expected behaviour.
4 years ago
krhubert
f32fea830e
Add country code validation ( #615 )
4 years ago
Elias Rodrigues
4407f4dea0
Add checksum validation for Ethereum address ( #630 )
4 years ago
root
742006d126
Closes #660 added excluded with and without
4 years ago
hzw
44a150f359
add required_if and required_unless
4 years ago
math-nao
7dbe685a02
Update timeZone tag name to timezone
4 years ago
Long Bui
67c4fdf0de
Make unique tag work with pointer fields.
4 years ago
Elias Rodrigues
1cbd3081e4
Add function asIntFromType
4 years ago
Elias Rodrigues
04749bc4d4
Fix golangci-lint issues
4 years ago
Elias Rodrigues
48684f91aa
Add baked-in support for time.Duration
4 years ago
math-nao
44f3347f13
Add support for time zone validation
4 years ago
Giuliano Scaglioni
7d6236a898
add updated regex for fqdn
5 years ago
Milan Divkovic
f3b347cc29
Add validators that check if string does not start/end with supplied parameter
5 years ago
Pantelis Sampaziotis
14f963703b
Add datetime validation
5 years ago
Pantelis Sampaziotis
9e58bcdee1
Empty strings are not lowercase or uppercase
5 years ago
Pantelis Sampaziotis
5b51bff4e6
Add isLowercase and isUppercase valitation
5 years ago
Pantelis Sampaziotis
581d2698d5
Added isJSON validation
5 years ago
Ravi Terala
893747e5ee
Add hostname_port validator feature
5 years ago
Shi Han NG
8f604265e0
Implement unique=FieldName
5 years ago
Taylor
e7c70798c9
Add e.164 support
5 years ago
Nguyễn Văn Hưng
da6897303a
error is always nil
5 years ago
Jonathan Thom
685d3e21f3
Makes regex constant & moves single quote replace logic to parseOneOfParam2
5 years ago
Dmitry M. Gavrovsky
dfc652373a
Added boolean type support for “eq” validator
5 years ago
Dean Karn
c0f05c7b3d
fix required_*
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
Dean Karn
6484d9f2fb
fix required_with_*
5 years ago
Dean Karn
cc25246f01
fix required_without_*
5 years ago