Aaron L
386133a84b
Add a way to read values and validate
...
In order to support multiple different types of requests, there needed
to be an interface to be able to read values from a request, and
subsequently validate them to return any errors.
So we've adjusted the Validator interface to no longer validate a
request but instead validate the object it lives on.
And we've created a new BodyReader interface.
2018-02-04 18:39:25 -08:00
Aaron L
59b2874bcd
Move validation implementations to defaults
...
- Add more interfaces for validation
2018-01-29 16:24:42 -08:00
Aaron L
15bbe59c7a
Remove validation from context.
...
- This is unnecessary now that request and context are more split up.
2015-08-02 13:00:16 -07:00
Aaron L
8a87d0de63
Separate the request from context.
2015-08-02 11:51:35 -07:00
Aaron L
99d0af8b72
Destroy a list of go lint errors.
2015-03-16 14:42:45 -07:00
Aaron
6f074543f4
Start the register module.
2015-02-23 02:03:29 -08:00
Kris Runzer
c117fe5154
Fix validate to work with new policies/rules
2015-02-10 23:30:46 -08:00
Kris Runzer
e660edd428
Safety commit
...
- Add new validation methods
- Cleaned up interactions with validation
- Add required validation
- Add confirm fields to validation
2015-01-25 23:02:43 -08:00
Aaron
65f7fad5fc
Second shot at proper validation.
2015-01-24 16:07:41 -08:00
Kris Runzer
b60b667184
Add better validation error support
...
- Add map function for ErrorList
- Creat new events for recover
2015-01-20 22:41:31 -08:00
Aaron
e4dfe30d02
Initial validate module.
2015-01-17 23:37:05 -08:00