Skip to content

contains

Myles Megyesi edited this page May 8, 2013 · 1 revision

Usage

(defvalidator user-validator
  [:name :contains])

(user-validator {:name nil})
; {}

(user-validator {:name ""})
; {}

(user-validator {})
; {:name ["must contain key"]}

Options:

None.

Default error message:

"must contain key"

Clone this wiki locally