schema.explainer
Jump to function (2) ›
schema.explainer/explain#
(explain schema value)
Returns nil if value conforms to schema, otherwise a map
describing the violations.
Example:
(explain :int :oops)
schema.explainer/human-readable-explain#
(human-readable-explain result)
Renders an explain result as a multi-line human string suitable for
REPL or CI output. Returns nil for a nil result.
Example:
(human-readable-explain (explain :int :oops))