Commit graph

15 commits

Author SHA1 Message Date
Gered 4eab47cbdd rename and make set-validation-error utility function public 2015-02-14 18:12:03 -05:00
Gered bc9e2a8912 add ability for checked failure handling to get validation errors list
'validate' functions now add params to the request under
:validation-errors when validations fail. if the fail-response used
is a function, the request that gets passed in is the last request
map that was used in the most recent validation instead of the original
2015-02-14 18:09:32 -05:00
Gered 228a2eff39 split out session helpers into separate namespace
mainly done for code readability. nicer to alias the namespace
separately and be able to write code like

    (session/assoc :foo "bar")

instead of

    (response/session-assoc :foo "bar")

but clearly a minor cosmetic change regardless
2015-02-14 15:42:35 -05:00
Gered e10a5e08e4 body now optional for response helpers (if just http status is enough) 2015-01-08 19:08:03 -05:00
Gered 6f203c26ea add common http response helper functions 2015-01-08 18:31:14 -05:00
Gered 5780caa698 rename wrap-checks 2015-01-07 22:09:04 -05:00
Gered f4527253b7 allow for either assoc or merge to get body content into :safe-params 2015-01-05 13:23:38 -05:00
Gered 14a462940d add auto-transform-body 2015-01-05 13:13:40 -05:00
Gered bb7438d555 checked-routes -> wrap-checks (mainly just a minor syntax cleanup) 2015-01-05 12:35:38 -05:00
Gered da94d5fd75 with-middleware -> wrap-middleware. uses compojure's wrap-routes now
this fixes problems where middleware could be run even if the wrapped
routes did not match the request (depended on scoping, e.g. nesting
in a context could limit this, but was not perfect).
2015-01-05 12:11:03 -05:00
Gered ad8401f88c support for transforming/validating/marking-safe the request body 2015-01-05 00:28:11 -05:00
Gered d59bc300fa add basic validation helper for checking against a schema definition 2015-01-04 23:40:23 -05:00
Gered 4fb8b7a002 allow alternate param parents to be specified. allow nested params. 2015-01-04 23:31:24 -05:00
Gered a5010e423e comments 2015-01-04 15:14:02 -05:00
Gered bd038047db initial commit 2015-01-04 00:11:24 -05:00