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
(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
(validate response schema sub-schema opts)Performs validation of RING response map
Performs validation of RING response map
(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
(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
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 |