Liking cljdoc? Tell your friends :D

c3kit.apron.schema.validators

Pure validation helpers — predicates, combinator factories, and the minimal building blocks used by both c3kit.apron.schema and c3kit.apron.schema.validations. Owns no lexicon state; combinators call out through validation-resolver, which c3kit.apron.schema populates at load time, to avoid a require cycle.

Named with the plural suffix to avoid the CLJS namespace/var clash with c3kit.apron.schema/validate (the entity-level public fn).

Pure validation helpers — predicates, combinator factories, and the
minimal building blocks used by both c3kit.apron.schema and
c3kit.apron.schema.validations. Owns no lexicon state; combinators
call out through *validation-resolver*, which c3kit.apron.schema
populates at load time, to avoid a require cycle.

Named with the plural suffix to avoid the CLJS namespace/var clash
with c3kit.apron.schema/validate (the entity-level public fn).
raw docstring

*validation-resolver*clj/s

Set by c3kit.apron.schema on load via set-validation-resolver!. A function that takes a validation lex name (keyword/symbol/string or factory vector [name & args]) and returns the resolved lex map. Combinator factories use it to handle name-form arguments without depending on schema's lookup machinery.

Set by c3kit.apron.schema on load via set-validation-resolver!. A function
that takes a validation lex name (keyword/symbol/string or factory vector
[name & args]) and returns the resolved lex map. Combinator factories use
it to handle name-form arguments without depending on schema's lookup
machinery.
raw docstring

->validate-fnclj/s

(->validate-fn v)

Resolves v to a validate fn. v may be an inline fn (returned as-is), an inline lex map (:validate extracted), or a lex name (resolved via validation-resolver).

Resolves v to a validate fn. v may be an inline fn (returned as-is),
an inline lex map (:validate extracted), or a lex name (resolved via
*validation-resolver*).
raw docstring

and?clj/s

(and? & preds)

bigdec?clj/s

(bigdec? v)

date?clj/s

(date? v)

Platform-aware: java.sql.Date on JVM, js/Date in browser.

Platform-aware: java.sql.Date on JVM, js/Date in browser.
raw docstring

email-patternclj/s


email?clj/s

(email? value)

instant?clj/s

(instant? v)

Platform-aware: java.util.Date on JVM, js/Date in browser.

Platform-aware: java.util.Date on JVM, js/Date in browser.
raw docstring

is-enum?clj/s

(is-enum? enum)

maybe?clj/s

(maybe? pred)

multiple?clj/s

(multiple? v)

Sequential or set.

Sequential or set.
raw docstring

nil-or?clj/s

(nil-or? pred)

nil?-orclj/s

(nil?-or f)

not?clj/s

(not? pred)

or?clj/s

(or? & preds)

present?clj/s

(present? v)

set-validation-resolver!clj/s

(set-validation-resolver! f)

Installs the resolver fn used by combinator factories to look up validation lex entries by name. c3kit.apron.schema calls this once at load time.

Installs the resolver fn used by combinator factories to look up validation
lex entries by name. c3kit.apron.schema calls this once at load time.
raw docstring

timestamp?clj/s

(timestamp? v)

Platform-aware: java.sql.Timestamp on JVM, js/Date in browser.

Platform-aware: java.sql.Timestamp on JVM, js/Date in browser.
raw docstring

uri?clj/s

(uri? value)

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