joeybloggs
7757a227ed
Add benchmark for StructExcept
2015-08-18 22:14:28 -04:00
joeybloggs
883731a774
Updates + Benchmarks
...
update documentation.
add benchmarks for StructPartial, dive tag, cross field and cross struct cross field.
2015-08-18 22:10:26 -04:00
joeybloggs
4f46e02133
Add documentation for cross struct validation tags + Struct Partials
2015-08-18 21:10:40 -04:00
joeybloggs
387cfe5aa9
Complete adding StructPartial and StructExcept
...
for issue-#149
2015-08-17 13:18:28 -04:00
joeybloggs
656ae32e8b
Updated PanicMatches after assertion library updates
...
now panic less, instead of panicing when data types do not match
in the field and cross field validations, the validation just
fails, because it's true i.e. does nil != 5 pass
or does nil == "string" nope fail
2015-08-17 09:05:20 -04:00
joeybloggs
4a8a489366
Merge remote-tracking branch 'upstream/v7-development' into merge
2015-08-17 08:34:09 -04:00
Dean Karn
305c50fb58
Merge pull request #153 from bluesuncorp/v6
...
Merge latest changes into v7-development
2015-08-17 08:32:40 -04:00
Dean Karn
6df82fdf49
Merge pull request #152 from bluesuncorp/v6-development
...
Updated Panic Tests after updates to assertion library
2015-08-17 08:29:44 -04:00
Dean Karn
8a9ed1f107
Merge pull request #151 from joeybloggs/v6-development
...
Updated Panic Tests after updates to assertion library
2015-08-17 08:28:46 -04:00
joeybloggs
844f5f46f7
Updated Panic Tests after updates to assertion library
2015-08-17 08:27:13 -04:00
joeybloggs
8ae139a445
Partially Merged in Partial struct methods + Tests
2015-08-17 07:37:05 -04:00
joeybloggs
3697be93be
update benchmarks, pretty much the same
2015-08-16 21:23:51 -04:00
joeybloggs
8ff687aae4
code cleanup
2015-08-16 21:17:00 -04:00
joeybloggs
1fbc384272
Complete test coverage for gecsfield, gtecsfield, ltcsfield and ltecsfield
2015-08-16 21:12:26 -04:00
joeybloggs
327aa2e826
Add gtcsfield, gtecsfield, ltcsfield and ltecsfield
2015-08-16 15:59:05 -04:00
joeybloggs
cd50c5e085
Added necsfield method + tests
2015-08-16 15:37:47 -04:00
joeybloggs
3a0791591a
Add cross struct map support for all types not just string
2015-08-16 10:26:30 -04:00
joeybloggs
4cbf0659ce
convert isLtField & isLteField to use new functions + test coverage
2015-08-14 21:41:25 -04:00
joeybloggs
5989727cf7
complete test coverage for IsGteField after conversion
2015-08-14 21:31:16 -04:00
joeybloggs
8aea478060
Update isGtField to user new functions
2015-08-14 21:19:41 -04:00
joeybloggs
2fe52ca08f
finish eqcsfield + test coverage
2015-08-14 21:02:01 -04:00
joeybloggs
d19088f865
Code Cleanup + some renaming
2015-08-14 09:06:52 -04:00
joeybloggs
81e29d3724
Complete Test Cases for getStructFieldOK
2015-08-14 08:43:54 -04:00
joeybloggs
2ea9043764
update to handle nested map + Array + Slice structs
2015-08-14 00:28:37 -04:00
joeybloggs
3ab458c80c
Updates
...
Split out Type checking.
Add Cross Field determination function for future automatic cross struct
namespace field validation.
2015-08-13 23:47:19 -04:00
Dean Karn
c62ee7ccdf
Merge pull request #148 from bluesuncorp/v6-development
...
Minor code cleanup no functional changes
2015-08-03 23:04:09 -04:00
Dean Karn
494e1360ec
Merge pull request #147 from joeybloggs/v6-development
...
minor code cleanup, no functional changes
2015-08-03 23:03:34 -04:00
joeybloggs
50f0798342
Run gofmt -s -w . on code
...
code cleanup, only a few changes.
2015-08-03 22:53:08 -04:00
Dean Karn
0cd5e89c38
Merge pull request #146 from bluesuncorp/v6-development
...
Add Exists Tag
2015-08-03 21:34:45 -04:00
Dean Karn
3f5b785707
Merge pull request #144 from joeybloggs/v6-development
...
Add exists tag
2015-08-03 21:32:09 -04:00
joeybloggs
7e97fcf2c4
Add exists tag
...
exists tag used to ensure that a Pointer, Interface or
Invalid has a value, but won't interfere with any other validation.
2015-08-03 20:47:11 -04:00
Dean Karn
f8fd45620a
Update README.md
...
update semaphore badge to production after merge
2015-08-01 21:00:31 -04:00
Dean Karn
a13509df8f
Merge pull request #141 from bluesuncorp/v6-development
...
Add RegisterCustomTypeFunc for easier adding of CustomTypeFunc
2015-08-01 20:59:16 -04:00
Dean Karn
442b210016
Merge pull request #140 from joeybloggs/v6-development
...
Add RegisterCustomTypeFunc for easier adding of CustomTypeFunc
2015-08-01 20:58:10 -04:00
joeybloggs
d2ea21ad15
Add RegisterCustomTypeFunc for easier adding of CustomTypeFunc
...
Thanks @johnniedoe for ths pull request!
2015-08-01 20:54:40 -04:00
Kevin Harrington
7c844893e1
Added RegisterCustomTypeFunc method and usage example.
2015-07-31 19:33:07 -04:00
joeybloggs
048d7b8100
Merge branch 'v6-development' into v6
2015-07-30 22:51:34 -04:00
Dean Karn
32910f84c4
Merge pull request #137 from joeybloggs/v6-development
...
Update simple.go file && README
2015-07-30 22:46:22 -04:00
joeybloggs
6a8ed5612a
Update simple.go file && README
2015-07-30 22:44:06 -04:00
Dean Karn
790122c21c
Update simple.go
...
tmp blank out of file
2015-07-30 22:37:45 -04:00
Dean Karn
d802346da4
Merge pull request #136 from bluesuncorp/v6-development
...
V6 development
2015-07-30 22:30:47 -04:00
Dean Karn
a05046f9e7
Merge pull request #135 from joeybloggs/v6-development
...
Add handling of custom types
2015-07-30 22:29:11 -04:00
joeybloggs
d363ed316c
Add handling of custom types
...
can add custom type handling, example: sql driver Valuer
can override any base data type like string or int ( I'd be carefull about that, but you can )
2015-07-30 22:24:43 -04:00
Dean Karn
55e8c8d9ca
Merge pull request #129 from bluesuncorp/v6-development
...
Add ip, ipv4, ipv6 and mac validators
2015-07-27 22:47:55 -04:00
Dean Karn
a7e8a12f07
Merge pull request #128 from joeybloggs/v6-development
...
Add ip, ipv4, ipv6 and mac validators
2015-07-27 22:47:29 -04:00
joeybloggs
143b21eba1
Add mac validator
2015-07-27 22:45:59 -04:00
joeybloggs
bd16331fc0
Add ip, ipv4 and ipv6 validators
2015-07-27 22:31:33 -04:00
Dean Karn
c0001173ee
Merge pull request #127 from bluesuncorp/v6-development
...
Update Required & Invalid logic
2015-07-27 17:24:39 -04:00
Dean Karn
a56318009b
Merge pull request #126 from joeybloggs/v6-development
...
Update Required & Invalid logic
2015-07-27 17:23:50 -04:00
joeybloggs
e078205c78
Update Required & Invalid logic
...
updated required validator to check for a nil value for types:
slice, map, pointer, interface, channel and function.
updated tranverseField to handle invalid field type.
Changes to be committed:
modified: baked_in.go
modified: doc.go
modified: validator.go
modified: validator_test.go
2015-07-27 17:20:42 -04:00