Skip to content
Myles Megyesi edited this page Oct 6, 2012 · 1 revision

Usage

(defvalidator user-validator
  [:email-address :email])

(user-validator {:email-address "not@valid"})
; {:email-address ["must be a valid email"]}

(user-validator {:email-address "[email protected]"})
; {}

Options:

None.

Default error message:

"must be a valid email"

Clone this wiki locally