qm012
c0d60f020b
add code Robustness
3 years ago
qm012
6ad1659689
add test content
3 years ago
qm012
0b0f695dc5
support custom message
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
Dean Karn
ace513eddd
Update .travis.yml
4 years ago
Dean Karn
0d657b4731
Update .travis.yml
4 years ago
Dean Karn
0e7e593daa
Merge pull request #667 from arkark/fix/endswith-readme
...
Fix a category of endswith in README
4 years ago
Takeshi Kaneko
f2ce6a4f92
Fix a category of endswith in README
4 years ago
David Ketch
1bf11c9299
Includes Error in FieldError's interface
4 years ago
root
ca0533bb97
Closes #660 readme updates
4 years ago
root
490e253792
Closes #660 added excluded with and without tests
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
nigelis
6f81b7d8d0
Validate tag omitempty, only base on field value
4 years ago