Dean Karn
b03f1f453e
update all deps to latest versions ( #801 )
3 years ago
cokezhang
61a982014e
enhancement: add zh translations for tag alphaunicode,alphanumunicode,containsrune,startswith,endswith ( #799 )
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
Brian Leishman
8cfa1e93b6
Update README.md ( #765 )
...
fix https://github.com/go-playground/validator/issues/756
Undoes this pr? https://github.com/go-playground/validator/pull/710
Running `go get github.com/go-playground/validator/v10` definitely seems to be the right command. Go getting without the version pulls 9 or just the master. Also importing without the version does not use the current version (v10 at the time of this pr)
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
3 years ago
Saed SayedAhmed
f1befad848
Addressing security vulnerabilities ( #774 )
...
* Update yaml and x/crypto to fix security vulnerabilities
* run go mod tidy to add missing go.sum entries
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
3 years ago
Dean Karn
65bb123677
Update README.md
3 years ago
amir
e3e38634b1
Add persian translations ( #771 )
3 years ago
N/A
af8b8d1c88
Add iso-3166-2 ( #788 )
3 years ago
Levani
8bfa88a462
Update README.md ( #786 )
3 years ago
Dean Karn
9104fe2461
Update README.md
3 years ago
masafumi-i
90ab42ba67
fix ja translation ( #792 )
3 years ago
Alonso Villegas
b1b32b2064
Fix map diving validation ( #793 )
3 years ago
Dean Karn
76b917f432
Update README.md
4 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
zytell3301
b95d43b789
Add ability to validate map data ( #752 )
...
* Implement ValidateMapCtx func for validating map data
* Add ValidateMap func for validating map data with an empty context
* Implement a basic example of ValidateMap method
* Update ValidateMapCtx method, so it can validate nested maps
* Due to changes in ValidateMapCtx, make some updates on ValidateMap method
* Update tests due to changes in ValidateMap method
* Create a basic test for validating nested maps
* Handle error when invalid data is supplied for diving
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
Dean Karn
b926bf0df9
Update README.md
4 years ago
Josh Slate
add373fff7
feat: add bcp 47 language tag validator ( #730 )
4 years ago
Dean Karn
68248183b4
Update README.md
4 years ago
Deri Herdianto
526b0968b3
Update errors.go ( #671 )
4 years ago
Sergei Isaev
2b75c46052
version removed from installation and import ( #710 )
4 years ago
frederikhors
3c8db83c19
New official Documentation URL ( #706 )
4 years ago
Peperoncino
5b8f3b8a0b
corresponds to boolean value of nefield ( #712 )
4 years ago
Torwang
882ec0def4
fix StructLevel Parent() ( #716 )
...
Co-authored-by: torwang <torwang@tencent.com>
4 years ago
Qalifah
0e674563ff
error in spelling ( #732 )
4 years ago
Michał Treter
ec1baac93d
Fix accessing fields in composed structs ( #733 )
4 years ago
João Francisco
514c9dbd77
Fix excludedWithoutAll comment ( #673 )
...
Function comment mistakenly referred to a different function
4 years ago
Jake-Convictional
9c415c4565
Add support for excluded_with on pointer fields ( #746 )
4 years ago
Dean Karn
f6584a41c8
split listing into separate job ( #680 )
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
Flávio CF Oliveira
d6b17fd90b
Added Translation for pt ( #613 )
...
* Added translations for portuguese [pt]
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
Dean Karn
8941cbd00e
Merge pull request #635 from taybart/master
...
Add e164 to doc.go
4 years ago
Dean Karn
8154ee6ca8
Merge branch 'master' into master
4 years ago
Dean Karn
f0805c61ba
Merge pull request #641 from math-nao/master
...
Add support for time zone validation
4 years ago
Dean Karn
76981ccf75
Merge pull request #642 from elias19r/issue-584-add-support-for-time-duration-type
...
Add support for time.Duration type
4 years ago
Dean Karn
57b4fab34b
Merge pull request #644 from longit644/bugfix/make-unique-tag-work-with-pointer-fields
...
Make unique tag work with pointer fields.
4 years ago
Dean Karn
d9e95d55e9
Update errors.go
4 years ago
Dean Karn
2a5412a1bc
Merge pull request #657 from nigelis/bugfix/omitempty-not-first
...
Validate tag omitempty, only base on field value
4 years ago
Dean Karn
839d050f74
Merge pull request #658 from hzwwen/master
...
Add required_if and required_unless
4 years ago
Dean Karn
e6eee3ea88
Merge branch 'master' into master
4 years ago
Dean Karn
b1ccceeb11
Merge pull request #664 from erma07/master
...
Closes #660 added excluded with and without
4 years ago
Dean Karn
4cd2e40256
Merge pull request #666 from xy-planning-network/patch
...
Includes Error in FieldError's interface
4 years ago