Liking cljdoc? Tell your friends :D
Clojure only.

types.validation


assertclj

(assert schema data)

Assert that data matches schema. Throws on failure else returns data.

Assert that data matches schema.  Throws on failure else returns data.
raw docstring

explainclj

(explain schema data)

Returns human readable explanation if data was invalid

Returns human readable explanation if `data` was invalid
raw docstring

valid?clj

(valid? schema data)

Returns true if data is valid per schema, false otherwise

Returns `true` if `data` is valid per `schema`, `false` otherwise
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