Liking cljdoc? Tell your friends :D

s-exp.legba.request

Validation of ring requests parameters and body against an OpenAPI operation

Validation of ring requests parameters and body against an OpenAPI
operation
raw docstring

Matches param-type for "cookie"

Matches `param-type` for "cookie"
raw docstring

ensure-params-supported!clj

(ensure-params-supported! openapi-schema sub-schema)

Throws if a parameter of operation sub-schema uses a serialization that cannot be validated

Throws if a parameter of operation `sub-schema` uses a serialization that
cannot be validated
raw docstring

header-params-schemaclj

Matches param-type for "header"

Matches `param-type` for "header"
raw docstring

path-params-schemaclj

Matches param-type for "path"

Matches `param-type` for "path"
raw docstring

query-params-schemaclj

Matches param-type for "query"

Matches `param-type` for "query"
raw docstring

validateclj

(validate request schema sub-schema opts)

Performs validation of RING request map

Performs validation of RING request map
raw docstring

validate-bodyclj

(validate-body {:as request :keys [body headers]} schema sub-schema opts)

Performs eventual validation of request :body

Performs eventual validation of request `:body`
raw docstring

(validate-cookie-params request schema sub-schema opts)

Performs eventual validation of "parameters" of type "cookie"

Performs eventual validation of "parameters" of type "cookie"
raw docstring

validate-header-paramsclj

(validate-header-params request schema sub-schema opts)

Performs eventual validation of "parameters" of type "header"

Performs eventual validation of "parameters" of type "header"
raw docstring

validate-path-paramsclj

(validate-path-params request schema sub-schema opts)

Performs eventual validation of "parameters" of type "path"

Performs eventual validation of "parameters" of type "path"
raw docstring

validate-query-paramsclj

(validate-query-params request schema sub-schema opts)

Performs eventual validation of "parameters" of type "query"

Performs eventual validation of "parameters" of type "query"
raw docstring

validatorclj

(validator schema sub-schema opts)

Returns a fn validating ring requests against operation sub-schema, returning the validated request. Parameters are looked up once, when creating the validator

Returns a fn validating ring requests against operation `sub-schema`,
returning the validated request. Parameters are looked up once, when creating
the validator
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close