(explain errors)
(explain errors translator)
Takes an error object as returned from schema an transforms each leaf value of either
Takes an error object as returned from schema an transforms each leaf value of either 1. NamedError 2. ValidationError Such that it is 'explained' (like schema's explain) but additionally turns the results into vectors. Optionally takes a translator if you want the NamedErrors & ValidationErrors explained in a humanized form.
(humanize x)
Returns a human explanation of a SINGLE error. This is for errors which are from USER input. It is not for programming errors. If the error is a map/vector then this function must be applied to each of those values. You should adapat this function for your own custom errors. This is just an example. Don't actually use this function. Define it in your business logic and pass it in to the check function.
Returns a human explanation of a SINGLE error. This is for errors which are from USER input. It is not for programming errors. If the error is a map/vector then this function must be applied to each of those values. You should adapat this function for your own custom errors. This is just an example. Don't actually use this function. Define it in your business logic and pass it in to the check function.
(humanize-errors-handler e data request)
(symbol-pattern regular-expression)
(vectorize x)
Recursively transforms all seq in m to vectors. Because maybe you want to use core.match with it.
Recursively transforms all seq in m to vectors. Because maybe you want to use core.match with it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close