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 )
10 years ago
Dean Karn
55e8c8d9ca
Merge pull request #129 from bluesuncorp/v6-development
...
Add ip, ipv4, ipv6 and mac validators
10 years ago
Dean Karn
a7e8a12f07
Merge pull request #128 from joeybloggs/v6-development
...
Add ip, ipv4, ipv6 and mac validators
10 years ago
joeybloggs
143b21eba1
Add mac validator
10 years ago
joeybloggs
bd16331fc0
Add ip, ipv4 and ipv6 validators
10 years ago
Dean Karn
c0001173ee
Merge pull request #127 from bluesuncorp/v6-development
...
Update Required & Invalid logic
10 years ago
Dean Karn
a56318009b
Merge pull request #126 from joeybloggs/v6-development
...
Update Required & Invalid logic
10 years ago
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
10 years ago
Dean Karn
54927e92d9
Merge pull request #124 from bluesuncorp/v6-development
...
Slit out assertion funcs. & add single field validation example
10 years ago
Dean Karn
f4625158e0
Merge pull request #123 from joeybloggs/v6-development
...
Add single Field validation example
10 years ago
joeybloggs
ea0db1fa47
Add single Field validation example
10 years ago
Dean Karn
c59a51f3e9
Merge pull request #122 from joeybloggs/v6-development
...
Split out assertions and put in external repo
10 years ago
joeybloggs
201c892979
Split out assertions and put in external repo
...
split our assertion functions like IsEqual, Equal, NotEqual, PanicMatches etc...
into another library https://github.com/bluesuncorp/assert so that I can use them
in other projects.
10 years ago
Dean Karn
b9cdaa4346
Merge pull request #121 from bluesuncorp/v6-development
...
Update Docs. and Benchmarks
10 years ago
Dean Karn
781f596065
Merge pull request #120 from joeybloggs/v6-development
...
Update Docs. and Benchmarks
10 years ago
joeybloggs
aef21d4d30
Update Benchmarks
...
Split out benchmarks into Success and Failure for more realistic numbers.
I was validating 2 structs within the benchmarks, both a Successful and
Failing struct which was artificially inflating the numbers.
10 years ago
joeybloggs
a5d0ef37b8
update doc.go, some v5 specific notes were left.
10 years ago
Dean Karn
a87651c07b
Update README.md
...
fix badge
10 years ago
Dean Karn
fd0f7cd349
Merge pull request #119 from bluesuncorp/v6-development
...
V6 development
10 years ago
Dean Karn
06ad2498ab
Merge pull request #118 from joeybloggs/v6-development
...
V6 development
10 years ago
joeybloggs
cdc48b4f90
Fix Bug in Ptr tests
10 years ago
joeybloggs
506e57e4d7
Merge remote-tracking branch 'upstream/v6-development' into v6-development
10 years ago
Dean Karn
b009996c4a
Update README.md
...
update badge to proper branch
10 years ago
Dean Karn
d078eb5498
Merge pull request #117 from bluesuncorp/v6-development
...
V6 development
10 years ago
Dean Karn
9e60f7d11b
Merge pull request #116 from joeybloggs/v6-development
...
V6 development
10 years ago
joeybloggs
2baa4bd353
Minor code cleanup
10 years ago
Dean Karn
347979cec7
Delete .travis.yml
...
no longer needed changed CI to semaphore
10 years ago
Dean Karn
2a2b70052e
Merge pull request #115 from bluesuncorp/v6-development
...
V6 development
10 years ago
Dean Karn
ae135ef613
Update README.md
...
Change CI to Semaphore
10 years ago
Dean Karn
fbc15ff5c6
Merge pull request #114 from joeybloggs/v6-development
...
V6 development
10 years ago
joeybloggs
41b4a43989
Updated documentation for new v6
10 years ago
joeybloggs
933fe0b7a9
Add test for comma and pipe obfuscation
10 years ago
joeybloggs
e005b06f11
Add Field Tag caching
...
now the benchmarks are getting back to awesome!
10 years ago
joeybloggs
e2a5b9881e
Add ValidationErrs Caching
...
when no errors occur, let's reuse the existing object.
10 years ago
joeybloggs
4bdd703409
Remove old validator code
...
was just keeping around for reference when converting.
10 years ago
joeybloggs
07f2263b41
Benchmark Updates
...
Renamed for better clarity.
Added Field OrTag Benchmark.
10 years ago
joeybloggs
7f4b49c751
Finished Tests, now at 100% test converage!
10 years ago
joeybloggs
4ce39526f6
Update Test Case + fix errors
...
Updated all tests to comply with new api.
Fix a few bugs found with validation.
10 years ago
joeybloggs
24d46304a8
Updating & re-injecting tests
...
updating test for the new error return formet
updated assertion functions to handle a nil Map,Slice,Ptr.....type
fixed hasValue check not comparing Interface but field Value.
10 years ago
joeybloggs
88cc19b9e1
Add traverseMap function
10 years ago
joeybloggs
4d2ffbedfc
Added traverseSlice function
10 years ago
joeybloggs
019c5fc4ac
Finished converting baked in functions & some updates
...
completed all validations function conversion.
updated omitempty check to continue if all ok instead of
passing tag to be validated.
10 years ago
joeybloggs
68ba87af24
More Progess
...
added single field validation function.
updated a few more baked in functions.
added back single field validation benchmark.
10 years ago
joeybloggs
7af3fb7c1f
initial validation logic reworked
...
initial function layouts and validation completed, still need to rework
all of the baked in functions, add map and array traversal and add back original
test cases.
NOTE: a far more pragmatic validation tests will be added, but not until it has
been proven stable with at least the old tests.
10 years ago
joeybloggs
953cc993e6
Merge remote-tracking branch 'upstream/v5' into v6-development
10 years ago
Dean Karn
ac33a23e6e
Merge pull request #113 from bluesuncorp/v5-development
...
update string comparisons to use utf8.RuneCountInString
10 years ago
Dean Karn
8a9bd75ae8
Merge pull request #112 from joeybloggs/v5-development
...
update to use utf8.RuneCountInString for string length
10 years ago
joeybloggs
89e9d9731d
update to use utf8.RuneCountInString for string length comparisons
...
updated baked in functions:
hasLengthOf
isGt
isGte
isLt
isLte
to use utf8.RuneCountInString for string length comparisons, not counting multi-bye
characters but runes in string length comparisons.
10 years ago
joeybloggs
b52f154023
Merge remote-tracking branch 'upstream/v5-development' into v5-development
10 years ago
Dean Karn
314b33a481
Merge pull request #111 from zhing/v5-development
...
V5 development
10 years ago