Liking cljdoc? Tell your friends :D

schema.utils

Private utilities used in schema implementation.

Private utilities used in schema implementation.
raw docstring

assoc-whenclj/s

(assoc-when m & kvs)

Like assoc but only assocs when value is truthy. Copied from plumbing.core so that schema need not depend on plumbing.

Like assoc but only assocs when value is truthy.  Copied from plumbing.core so that
schema need not depend on plumbing.
raw docstring

char-mapclj/smacro

(char-map)

class-schemaclj/s

(class-schema klass)

declare-class-schema!clj/s

(declare-class-schema! klass schema)

errorclj/s

(error x)

Distinguish a value (must be non-nil) as an error.

Distinguish a value (must be non-nil) as an error.
raw docstring

error-valclj/s

(error-val x)

error?clj/s

(error? x)

ErrorContainercljs


fn-nameclj/s

(fn-name f)

A meaningful name for a function that looks like its symbol, if applicable.

A meaningful name for a function that looks like its symbol, if applicable.
raw docstring

fn-schema-bearerclj/s

(fn-schema-bearer f)

What class can we associate the fn schema with? In Clojure use the class of the fn; in cljs just use the fn itself.

What class can we associate the fn schema with? In Clojure use the class of the fn; in
cljs just use the fn itself.
raw docstring

format*clj/s

(format* fmt & args)

make-ValidationErrorclj/s

(make-ValidationError schema value expectation-delay fail-explanation)

for cljs sake (easier than normalizing imports in macros.clj)

for cljs sake (easier than normalizing imports in macros.clj)
raw docstring

max-value-lengthclj/s


named-error-explainclj/s

(named-error-explain err)

NamedErrorcljs


record?clj/s

(record? x)

type-ofclj/s

(type-of x)

unmungeclj/s

(unmunge s)

TODO: eventually use built in demunge in latest cljs.

TODO: eventually use built in demunge in latest cljs.
raw docstring

use-fn-validationclj/s

Turn on run-time function validation for functions compiled when s/compile-fn-validation was true -- has no effect for functions compiled when it is false.

Turn on run-time function validation for functions compiled when
s/compile-fn-validation was true -- has no effect for functions compiled
when it is false.
raw docstring

validation-error-explainclj/s

(validation-error-explain err)

ValidationErrorcljs


value-nameclj/s

(value-name value)

Provide a descriptive short name for a value.

Provide a descriptive short name for a value.
raw docstring

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

× close