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


error-schemaclj


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-schemaclj


prune-map-transformerclj

(prune-map-transformer)

success-schemaclj

(success-schema response-schema)

Given a response schema, returns a success schema that wraps that response

Given a response schema, returns a success schema that wraps that response
raw docstring

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

× close