Liking cljdoc? Tell your friends :D

dev.skivi.validation.interface

Job payload validation interface supporting malli schemas, clojure.spec specs, and composite chains of validators.

Typical usage:

;; From config (malli schemas or clojure.spec keywords in [:schema :job-schemas]) (def v (create-validator config))

;; Directly (def v (malli-validator {:send-email [:map [:to :string] [:subject :string]]}))

;; Validate (validate-payload v :send-email {:to "x@y.com" :subject "Hi"})

To enable malli instrumentation of this namespace:

(require '[malli.instrument :as mi]) (mi/instrument!) (mi/unstrument!)

Job payload validation interface supporting malli schemas, clojure.spec specs,
and composite chains of validators.

Typical usage:

  ;; From config (malli schemas or clojure.spec keywords in [:schema :job-schemas])
  (def v (create-validator config))

  ;; Directly
  (def v (malli-validator {:send-email [:map [:to :string] [:subject :string]]}))

  ;; Validate
  (validate-payload v :send-email {:to "x@y.com" :subject "Hi"})

To enable malli instrumentation of this namespace:

  (require '[malli.instrument :as mi])
  (mi/instrument!)
  (mi/unstrument!)
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