Liking cljdoc? Tell your friends :D

s-exp.legba.response

Validation of ring responses headers and body against an OpenAPI operation, and JSON encoding of response bodies

Validation of ring responses headers and body against an OpenAPI
operation, and JSON encoding of response bodies
raw docstring

encode-bodyclj

(encode-body {:as response :keys [body headers]})

Encodes response collection body to a JSON string when its content-type is json. Other bodies (strings, streams, files) are left untouched

Encodes `response` collection body to a JSON string when its content-type is
json. Other bodies (strings, streams, files) are left untouched
raw docstring

validateclj

(validate response schema sub-schema opts)

Performs validation of RING response map

Performs validation of RING response map
raw docstring

validate-response-bodyclj

(validate-response-body
  {:as response :keys [status body headers] :or {status 200}}
  schema
  sub-schema
  opts)

Performs eventual validation of response body

Performs eventual validation of response body
raw docstring

validate-response-headersclj

(validate-response-headers
  {:as response :keys [status headers] :or {status 200}}
  schema
  sub-schema
  opts)

Performs validation of response headers

Performs validation of response headers
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