Liking cljdoc? Tell your friends :D

doccla.oth-client.utils


->mock-clientclj

(->mock-client mocks)

Creates a client that, when passed to any oth-client functions, will cause them to return mock data as defined in mocks. mocks is a map of symbols to either data or functions. If a function is passed, that function is executed with the same args as the mocked function. If data is passed, the data is returned when the mock is called. Note that enabling mocks disables malli validation of inputs.

Creates a client that, when passed to any oth-client functions,
will cause them to return mock data as defined in mocks.
`mocks` is a map of symbols to either data or functions. If a function
is passed, that function is executed with the same args as the mocked function.
If data is passed, the data is returned when the mock is called.
Note that enabling mocks disables malli validation of inputs.
raw docstring

->outputclj

(->output success-codes input)
(->output success-codes post-processor input)

Creates a success or error map. If provided, will run the post-processor over the decoded input

Creates a success or error map.
If provided, will run the post-processor over the decoded input
raw docstring

decodeclj

(decode json-string)

default-request-mapclj


encodeclj

(encode clj-data)

input-validate-fail!clj

(input-validate-fail! type data)

Custom input validation reporter function that throws an exception with error details if the input does not match the schema and removing potential sensitive values.

Custom input validation reporter function that throws an exception with error details
if the input does not match the schema and removing potential sensitive values.
raw docstring

make-mockableclj

(make-mockable)

Replaces any functions marked :mockable in the current namespace with an implementation that supports returning mock values.

Replaces any functions marked :mockable in the current namespace with an
implementation that supports returning mock values.
raw docstring

opts->requestclj

(opts->request opts)

Creates a clj-http request map from the opts passed in.

Creates a clj-http request map from the opts passed in.
raw docstring

opts->request-with-bodyclj

(opts->request-with-body opts body)

Creates a clj-http POST request map from the given opts and body

Creates a clj-http POST request map from the given opts and body
raw docstring

prune-map-transformerclj

(prune-map-transformer)

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

× close