Commit graph

25 commits

Author SHA1 Message Date
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
1e1442d02c merge changes from Pull Request #24 from @manucorporat 2015-04-08 18:23:20 -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
684c339b0d issue-#15
correct incorrect call to ValidateStruct and changed to
ValidateStructRecursive
2015-03-19 15:55:23 -04:00
Dean Karn
cfea08f69d issue-#14
remove internal validator.
2015-03-11 00:11:32 -04:00
Dean Karn
c0c54e6ddf issue-#12
add return of variable Type as well as Kind
2015-03-10 17:59:03 -04:00
Dean Karn
250bdade04 Merge branch 'v2-development' into v2
Conflicts:
	validator.go
2015-03-10 15:09:54 -04:00
Dean Karn
e882184fe2 issue-#11
update gt, gte, lt and let to handle dates compared to time.Now().UTC()
2015-03-10 15:07:00 -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
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
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
2334f777b8 issue-#6
add interface support + Test
2015-02-14 13:31:44 -05:00
Dean Karn
23cff6eddb issue-#4
add documentation
2015-02-14 13:00:48 -05:00
Dean Karn
399fda949a issue-#5
add Flatten function
add Test case for Flatten() function
2015-02-13 21:46:05 -05:00
Dean Karn
b2f3d55b2c issue-#3
add tests for existing functions.
2015-02-13 14:23:21 -05:00
Dean Karn
fe79700b95 issue-#3
unintended error redesign to heierarchical
2015-02-13 10:40:48 -05:00
Dean Karn
207b714da8 issue-#2
add Error interfaces to error structs
add const variable to production string variables.
2015-02-13 09:01:11 -05:00
Dean Karn
cff7604ce7 function rename 2015-02-12 22:43:23 -05:00
Dean Karn
05d2507495 add omit empty check
allow for optional value checking
2015-02-12 22:42:16 -05:00
Dean Karn
1b249998b2 code cleanup 2015-02-12 21:42:24 -05:00
Dean Karn
aad5727a16 initial working commit 2015-02-12 20:49:57 -05:00
Dean Karn
c0ff4f7f60 initial code
checkin so that can integrate with http://gopkg.in/
2015-02-12 14:40:37 -05:00