Commit graph

40 commits

Author SHA1 Message Date
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
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
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
joeybloggs
a5d0ef37b8 update doc.go, some v5 specific notes were left. 2015-07-23 12:30:29 -04:00
joeybloggs
41b4a43989 Updated documentation for new v6 2015-07-19 10:48:16 -04:00
joeybloggs
92bd6b335a code cleanup
for #88
2015-06-29 20:14:58 -04:00
joeybloggs
22aaa55c7c add dive documentation
for #78
2015-06-27 14:08:07 -04:00
joeybloggs
35aff710e4 added many new validator + tests + documentation:
ascii
printascii
multibyte
datauri
latitude
longitude
ssn
2015-06-17 09:02:26 -04:00
joeybloggs
7aa70841bc add uuid, uuid3, uuid4 and uuid5 validators + tests + documentation 2015-06-17 08:03:31 -04:00
joeybloggs
20d9b7909f add isbn, isbn10 and isbn validators + tests + documentation 2015-06-16 23:22:36 -04:00
joeybloggs
0fbc3228e8 rework code to allow handling of comma (,) and = within the params i.e. excludesall=,=
add test cases for comma and = validation within params
add documentation stating how to include a comma within the parameters

for #67
2015-06-08 20:42:16 -04:00
joeybloggs
aa275c658d merge pul request changes from @xboston 2015-06-08 08:27:07 -04:00
joeybloggs
3dcc019b64 add contains, contains any, contains rune, excludes, excludes and excludesrune validation functions + tests + docuemtation
for #43
2015-05-22 22:28:40 -04:00
joeybloggs
f7f779fb31 add documentation for ne and nefield validation function
#38
2015-05-19 15:29:26 -04:00
joeybloggs
b891b1cf3c add eq baked in function + tests
add eqfield baked in function + tests

for issue #35
2015-05-08 11:59:48 -04:00
Dean Karn
e530eb5470 add documentation for new base64 validator 2015-04-19 10:21:03 -04:00
Anthony Olurin
700e5f4b46 Minor typos
- Changes made to documentation and ReadME.
2015-04-19 00:01:15 -04:00
Dean Karn
7ac98be692 changes in preparation for package rename to validator
update code for more idiomatic code
2015-04-10 00:30:30 -04:00
Dean Karn
a660c007dc update for new organization
update README, links and documentation for new organization
2015-04-09 20:38:05 -04:00
Dean Karn
1e1442d02c merge changes from Pull Request #24 from @manucorporat 2015-04-08 18:23:20 -04:00
Dean Karn
50d47f3afa Merge branch 'v4' into v4-development
Conflicts:
	doc.go
2015-04-05 21:10:36 -04:00
Chris Scott
0d078a658d Update docs with correct code to instantiate a new validator. 2015-04-05 12:22:14 -04:00
Dean Karn
a3cb430fa1 issue-#20
add extra param of current struct.
2015-03-23 10:57:45 -04:00
Dean Karn
622107d990 issue-#18
add “structonly” tag for struct only and not field validation
2015-03-21 13:35:17 -04:00
Dean Karn
cfea08f69d issue-#14
remove internal validator.
2015-03-11 00:11:32 -04:00
Dean Karn
edb25ac80e issue-#13
add generic cross field validation for Number and time.Time data types
2015-03-10 23:34:19 -04:00
Dean Karn
dfab3dff09 add documentation to new handling of time.Time 2015-03-10 15:23:15 -04:00
Dean Karn
191b1ce01f v2 add cross field validation ability 2015-03-06 11:38:21 -05:00
Dean Karn
ac82433503 Update to return FieldValidationError for single field validation
update to return FieldValidationError for single field validation
add Kind, Param and Value to the FieldValidationError struct to allow
for a more automated error handling api outside of this library.
2015-02-26 10:22:50 -05:00
Dean Karn
4e4a2a2b8e issue-#1
add url validation and test cases
add uri validation and test cases
2015-02-25 15:08:22 -05:00
Dean Karn
2073d33609 issue-#1
add lt validation function + test code
add lte validation function + test code
add gt validation function + test code
add get validation function + test code
2015-02-15 23:20:33 -05:00
Dean Karn
cbf8124403 issue-#7
add ‘or’ operator to allow multiple validators to be used instead of
just the implicit ‘and’
2015-02-15 10:54:06 -05:00
Dean Karn
beb87b1d05 issue-#1
add rgb color validation function + Test Code
add rgba color validation function + Test Code
add hsl color validation function + Test Code
add hula color validation function + Test Code
2015-02-15 10:03:12 -05:00
Dean Karn
dfe8a4e7fa issue-#1
add numeric validation function + Test Cases
add number validation function + Test Cases
add hexadecimal validation function + Test Cases
add hexcolor validation function + Test Cases
add email validation function + Test Cases
2015-02-14 22:16:03 -05:00
Dean Karn
e8eadfc326 issue-#1
add alpha validation function + Test code
add alphanumeric validation function + Test code
2015-02-14 21:26:15 -05:00
Dean Karn
5f9a79c2ea fix ampersand not displaying correctly 2015-02-14 14:15:19 -05:00
Dean Karn
c63f5f5a80 add to documentation 2015-02-14 14:13:34 -05:00
Dean Karn
23cff6eddb issue-#4
add documentation
2015-02-14 13:00:48 -05:00
Dean Karn
3614803628 issue-#5
add basic docs meant to be in issue-#4
2015-02-13 19:45:46 -05:00