Liking cljdoc? Tell your friends :D

ring.swagger.middleware


comp-mwclj

(comp-mw mw & base-params)
source

default-error-handlerclj

(default-error-handler {:keys [error]})
source

get-swagger-dataclj

(get-swagger-data request)

Reads top-level swagger-data from request, pushed in by set-swagger-data.

Reads top-level swagger-data from request, pushed in by
set-swagger-data.
sourceraw docstring

set-swagger-dataclj

(set-swagger-data request data)
(set-swagger-data request f & data)

Sets extra top-level swagger-data into a request. By default, deep-merges gives data in. Data can be read with get-swagger-data.

Sets extra top-level swagger-data into a request.
By default, deep-merges gives data in. Data
can be read with get-swagger-data.
sourceraw docstring

stringify-errorclj

(stringify-error error)
source

wrap-swagger-dataclj

(wrap-swagger-data handler data)

Middleware that adds top level swagger-data into request.

Middleware that adds top level swagger-data into request.
sourceraw docstring

wrap-validation-errorsclj

(wrap-validation-errors handler & [{:keys [error-handler catch-core-errors?]}])

Middleware that catches thrown ring-swagger validation errors turning them into valid error respones. Accepts the following options:

:error-handler - a function of schema.utils.ErrorContainer -> response :catch-core-errors? - consume also :schema.core/errors (defaults to false)

Middleware that catches thrown ring-swagger validation errors turning them
into valid error respones. Accepts the following options:

:error-handler - a function of schema.utils.ErrorContainer -> response
:catch-core-errors? - consume also :schema.core/errors (defaults to false)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close