Eduardo Mello
b43d437012
feat: ✨ add cve validator ( #983 )
2 years ago
konstantin
ae3e728763
Introduce Luhn Checksum Validation ( #1009 )
2 years ago
brent s
2e43671001
(New validator) Validate non-existing but valid file/directory paths ( #1022 )
2 years ago
just Alan
f560fd4e07
Feat: support mongodb objectID validation ( #1023 )
...
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
2 years ago
Yasoob Haider
29d50ba963
add validation for base64 url without = padding ( #1024 )
...
Co-authored-by: Yasoob Haider <yasoob.haider@zomato.com>
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
2 years ago
zemzale
1c1f70d35b
feat(unique): Add support for struct memember validation ( #1048 )
...
This allows validating that two struct memebers are unique. This has
been documented as a feature, but has never been actually implemented.
2 years ago
Yann Salaün
cc768b176d
fix unique= when struct field is a nil pointer ( #1041 )
...
Fix https://github.com/go-playground/validator/issues/749
Co-authored-by: Yann Salaün <ysalaun@yubik.io>
2 years ago
Alberto Forcato
3ee65f8c59
Add cron support ( #1045 )
2 years ago
Owen Gong
89b91cea99
Added "http_url" tag to validate if the variable is a HTTP(s) URL ( #1047 )
2 years ago
Vijay Nallagatla
f2078f7696
Fix unique validator for map with Pointer value ( #1062 )
2 years ago
Arthur Jenoudet
ef342b6f7c
fix validator excluded_unless ( #1064 )
2 years ago
Dean Karn
d1178535f7
change eq and ne ignore case tag names
2 years ago
sgallizia
72a3e75460
added IsEqIgnoreCase and IsNeIgnoreCase ( #1076 )
2 years ago
Mohamed Sohail
b95730fb11
feat: add eth_addr_checksum validation, update eth_addr ( #1080 )
...
rationale:
- ethereum addresses are derived from a public key (the last 20 bytes). The network accepts any case insensitive address as long as it is a 40 char alphanumeric (When the last 20 bytes are converted to hex). It is 0x prefixed so that it becomes 42 in length, hence the current eth_addr implementation is modified to reflect this.
- Checksum-ing is optional on ethereum and is a way of typo checking the address hence this is introduced as a new validation i.e. eth_addr_checksum.
refs:
- https://github.com/ethereum/go-ethereum/blob/master/crypto/crypto.go#L275
- https://goethereumbook.org/en/wallet-generate/
- https://goethereumbook.org/en/address-check/
2 years ago
Dean Karn
8f07b03682
update deps ( #1061 )
2 years ago
Vaibhav Dighe
1e8c614c2a
Fixed boolean validation to handle bool kind ( #988 )
2 years ago
Jahanvi Aggarwal
8cf4f8c311
Adding Support for SkipUnless validator and testing the same
2 years ago
t0250361
c12e80a0b5
#908|Add Support of SkipUnless
3 years ago
Jason.Zhang
d3e4be3e44
Enhanced ValidationCtx method to support nested map in slice #915 ( #917 )
3 years ago
Sec Cake
4f55647bd7
Added some hash validation ( #875 )
3 years ago
Lauris BH
f09500fca7
Fix support for aliased time.Time types ( #890 )
3 years ago
XIE Long
af72f63d39
Result is wrong while there are multiple group of OR operators #910 ( #911 )
3 years ago
Stefan Dillenburg
f2d3ff7f98
fix: Remove underscore from RFC-1123 based regex ( #912 )
...
RFC-1123 is based on RFC-952, which doesn't allow underscores. RFC-1123
must be therefore implemented with the same constraint to disallow
underscores in host names.
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
Alonso Villegas
b1b32b2064
Fix map diving validation ( #793 )
3 years ago
Dean Karn
95ac68b6d7
fix url_encoded regex ( #769 )
4 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
Michał Treter
ec1baac93d
Fix accessing fields in composed structs ( #733 )
4 years ago
Jake-Convictional
9c415c4565
Add support for excluded_with on pointer fields ( #746 )
4 years ago
Dean Karn
3bb4866602
Github Actions Changeover ( #679 )
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
Brandon Lee
704a814277
accept 0x(0X) start in 'hexadecimal' tag ( #620 )
...
* accept hexadecimal which starts with 0x(0X) optionally
4 years ago
Elias Rodrigues
4407f4dea0
Add checksum validation for Ethereum address ( #630 )
4 years ago
root
490e253792
Closes #660 added excluded with and without tests
4 years ago