(wrap-error-response handler opts)
Wraps handler with error checking middleware that will transform validation
Exceptions to equivalent http response, as infered per ex->response
Wraps handler with error checking middleware that will transform validation Exceptions to equivalent http response, as infered per `ex->response`
(wrap-error-response-fn handler req opts)
(wrap-validation handler
schema
method
path
{:as opts :keys [soft-response-validation]})
Takes a regular RING handler returns a handler that will apply openapi
validation from the supplied schema
for a given method
and path
Takes a regular RING handler returns a handler that will apply openapi validation from the supplied `schema` for a given `method` and `path`
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |