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
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
33ffa4a31f
Move var declarations to the top in test functions
4 years ago
Elias Rodrigues
55e0f418d6
Minor edits
4 years ago
Elias Rodrigues
04749bc4d4
Fix golangci-lint issues
4 years ago
Elias Rodrigues
fc1b28803a
Update docs for baked-in time.Duration supported tags
4 years ago
Elias Rodrigues
f525f0b64f
Add tests for baked-in time.Duration supported tags
4 years ago
Elias Rodrigues
48684f91aa
Add baked-in support for time.Duration
4 years ago
Elias Rodrigues
0c71d5cc08
Add var timeDurationType
4 years ago
Elias Rodrigues
94470e68f3
Add function asIntFromTimeDuration()
4 years ago
Elias Rodrigues
1c4e56307b
Add bin to .gitignore
4 years ago
math-nao
44f3347f13
Add support for time zone validation
4 years ago
Taylor
07a4b7aa38
Add wiki link for E.164
4 years ago
Taylor
0bfda52ce1
Add e164 to doc.go
4 years ago
Dean Karn
ea924ce89a
Update README.md
5 years ago
Dean Karn
059510c3bf
Merge pull request #612 from Giulianos/bugfix/fqdn
...
Allow numbers in FQDN validation
5 years ago
Dean Karn
50166a5a06
Merge branch 'master' into bugfix/fqdn
5 years ago
Dean Karn
ab4e67f050
Merge pull request #609 from fourcels/master
...
Add zh,zh_tw datetime translation
5 years ago
Dean Karn
ae8ecbca8a
Merge branch 'master' into master
5 years ago
Dean Karn
0ab8e0351d
Merge pull request #607 from johnbailon/number_documentation
...
Add number validator to documentation
5 years ago
Dean Karn
7e978ff872
Merge pull request #600 from amiraliucsc/fix/RFC952-host
...
Fix/rfc952 host
5 years ago
Dean Karn
957a452839
Merge pull request #598 from cncal/enhance_zh_translation
...
enhancement: add zh translations for tag json, lowercase, uppercase, …
5 years ago
Dean Karn
257f202dd1
Merge pull request #588 from erikaleigh/fix-grammatical-errors
...
Fix grammatical errors in errors.go
5 years ago