Dean Karn
96d7f70a71
fix indentation
2020-10-17 12:06:54 -07:00
Dean Karn
793791d72b
fix yaml
2020-10-17 12:05:59 -07:00
Dean Karn
ce708b121e
move linting to separate job
2020-10-17 12:05:26 -07:00
Dean Karn
e3a9ac5b17
restore cache on all but ubuntu and latest go
2020-10-17 11:59:25 -07:00
Dean Karn
3bb4866602
Github Actions Changeover ( #679 )
2020-10-17 11:53:15 -07:00
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.
2020-10-17 08:49:42 -07:00
Flávio CF Oliveira
d6b17fd90b
Added Translation for pt ( #613 )
...
* Added translations for portuguese [pt]
2020-09-27 15:48:22 -07:00
krhubert
f32fea830e
Add country code validation ( #615 )
2020-09-27 15:46:23 -07:00
Brandon Lee
704a814277
accept 0x(0X) start in 'hexadecimal' tag ( #620 )
...
* accept hexadecimal which starts with 0x(0X) optionally
2020-09-27 12:10:32 -07:00
Elias Rodrigues
4407f4dea0
Add checksum validation for Ethereum address ( #630 )
2020-09-27 12:04:32 -07:00
Dean Karn
8941cbd00e
Merge pull request #635 from taybart/master
...
Add e164 to doc.go
2020-09-27 11:52:36 -07:00
Dean Karn
8154ee6ca8
Merge branch 'master' into master
2020-09-27 11:50:24 -07:00
Dean Karn
f0805c61ba
Merge pull request #641 from math-nao/master
...
Add support for time zone validation
2020-09-27 11:47:15 -07:00
Dean Karn
76981ccf75
Merge pull request #642 from elias19r/issue-584-add-support-for-time-duration-type
...
Add support for time.Duration type
2020-09-27 11:45:09 -07:00
Dean Karn
57b4fab34b
Merge pull request #644 from longit644/bugfix/make-unique-tag-work-with-pointer-fields
...
Make unique tag work with pointer fields.
2020-09-27 11:42:30 -07:00
Dean Karn
d9e95d55e9
Update errors.go
2020-09-27 11:35:18 -07:00
Dean Karn
2a5412a1bc
Merge pull request #657 from nigelis/bugfix/omitempty-not-first
...
Validate tag omitempty, only base on field value
2020-09-27 11:31:16 -07:00
Dean Karn
839d050f74
Merge pull request #658 from hzwwen/master
...
Add required_if and required_unless
2020-09-27 11:28:50 -07:00
Dean Karn
e6eee3ea88
Merge branch 'master' into master
2020-09-27 11:25:00 -07:00
Dean Karn
b1ccceeb11
Merge pull request #664 from erma07/master
...
Closes #660 added excluded with and without
2020-09-27 11:16:46 -07:00
Dean Karn
4cd2e40256
Merge pull request #666 from xy-planning-network/patch
...
Includes Error in FieldError's interface
2020-09-27 11:11:56 -07:00
Dean Karn
ace513eddd
Update .travis.yml
2020-09-27 11:04:12 -07:00
Dean Karn
0d657b4731
Update .travis.yml
2020-09-27 11:04:00 -07:00
Dean Karn
0e7e593daa
Merge pull request #667 from arkark/fix/endswith-readme
...
Fix a category of endswith in README
2020-09-27 11:00:56 -07:00
Takeshi Kaneko
f2ce6a4f92
Fix a category of endswith in README
2020-09-17 21:04:54 +09:00
David Ketch
1bf11c9299
Includes Error in FieldError's interface
2020-09-16 15:14:29 -05:00
root
ca0533bb97
Closes #660 readme updates
2020-09-15 19:45:48 +02:00
root
490e253792
Closes #660 added excluded with and without tests
2020-09-15 19:40:20 +02:00
root
742006d126
Closes #660 added excluded with and without
2020-09-15 18:13:38 +02:00
hzw
44a150f359
add required_if and required_unless
2020-09-03 20:34:19 +08:00
nigelis
6f81b7d8d0
Validate tag omitempty, only base on field value
2020-09-01 21:16:32 +08:00
math-nao
7dbe685a02
Update timeZone tag name to timezone
2020-08-02 13:59:46 +02:00
Long Bui
67c4fdf0de
Make unique tag work with pointer fields.
2020-07-29 23:07:14 +07:00
Elias Rodrigues
1cbd3081e4
Add function asIntFromType
2020-07-28 11:47:26 -03:00
Elias Rodrigues
33ffa4a31f
Move var declarations to the top in test functions
2020-07-26 12:24:53 -03:00
Elias Rodrigues
55e0f418d6
Minor edits
2020-07-26 11:40:20 -03:00
Elias Rodrigues
04749bc4d4
Fix golangci-lint issues
2020-07-25 23:06:22 -03:00
Elias Rodrigues
fc1b28803a
Update docs for baked-in time.Duration supported tags
2020-07-25 23:05:52 -03:00
Elias Rodrigues
f525f0b64f
Add tests for baked-in time.Duration supported tags
2020-07-25 23:05:24 -03:00
Elias Rodrigues
48684f91aa
Add baked-in support for time.Duration
2020-07-25 23:02:42 -03:00
Elias Rodrigues
0c71d5cc08
Add var timeDurationType
2020-07-25 23:01:01 -03:00
Elias Rodrigues
94470e68f3
Add function asIntFromTimeDuration()
2020-07-25 23:00:27 -03:00
Elias Rodrigues
1c4e56307b
Add bin to .gitignore
2020-07-25 22:59:44 -03:00
math-nao
44f3347f13
Add support for time zone validation
2020-07-25 19:39:27 +02:00
Taylor
07a4b7aa38
Add wiki link for E.164
2020-07-07 14:19:33 -06:00
Taylor
0bfda52ce1
Add e164 to doc.go
2020-07-07 14:16:52 -06:00
Dean Karn
ea924ce89a
Update README.md
2020-05-20 23:13:22 -07:00
Dean Karn
059510c3bf
Merge pull request #612 from Giulianos/bugfix/fqdn
...
Allow numbers in FQDN validation
2020-05-20 23:08:16 -07:00
Dean Karn
50166a5a06
Merge branch 'master' into bugfix/fqdn
2020-05-20 23:06:53 -07:00
Dean Karn
ab4e67f050
Merge pull request #609 from fourcels/master
...
Add zh,zh_tw datetime translation
2020-05-20 22:59:01 -07:00