(->parameter-element-id {:keys [method uri] :as route})
Converts route
to parameter element ID given the :method
and :uri
in the route
. Returns the parameter validation element ID (if found), or nil
.
Converts `route` to parameter element ID given the `:method` and `:uri` in the `route`. Returns the parameter validation element ID (if found), or `nil`.
(->payload-element-id {:keys [method uri] :as route})
Converts route
to payload element ID given the :method
and :uri
in the route
. Returns the payload validation element ID (if found), or nil
.
Converts `route` to payload element ID given the `:method` and `:uri` in the `route`. Returns the payload validation element ID (if found), or `nil`.
(->route request)
Convert HTTP request
to route map with :method
and :uri
keys.
Convert HTTP `request` to route map with `:method` and `:uri` keys.
(parameter-validation-routes! pvrs)
Set the parameter-validation-routes
map with pvrs
.
Set the `parameter-validation-routes` map with `pvrs`.
(payload-validation-routes! pvrs)
Set the payload-validation-routes
map with pvrs
.
Set the `payload-validation-routes` map with `pvrs`.
(simple-bad-request-response body)
Simple bad request due to invalid payload or parameters given validation
error messages body
.
Simple bad request due to invalid payload or parameters given validation error messages `body`.
(validate route-lookup-f request-key v-type handler)
Validation of request payload wrapped function.
Validation of request payload wrapped function.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close