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).
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.
(->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*).
(and? & preds)(bigdec? v)(date? v)Platform-aware: java.sql.Date on JVM, js/Date in browser.
Platform-aware: java.sql.Date on JVM, js/Date in browser.
(email? value)(instant? v)Platform-aware: java.util.Date on JVM, js/Date in browser.
Platform-aware: java.util.Date on JVM, js/Date in browser.
(is-enum? enum)(maybe? pred)(nil-or? pred)(nil?-or f)(not? pred)(or? & preds)(present? v)(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.
(timestamp? v)Platform-aware: java.sql.Timestamp on JVM, js/Date in browser.
Platform-aware: java.sql.Timestamp on JVM, js/Date in browser.
(uri? value)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |