The validators vocabulary provides a set of words which are intended to be used with the form validation functionality offered by furnace.actions. They can also be used independently of the web framework.

Note that validators which take numbers must be preceded by v-integer or v-number if the original input is a string.

Higher-order validators which require additional parameters:
v-default ( str def -- str/def )

v-optional ( str quot -- result )

v-min-length ( str n -- str )

v-max-length ( str n -- str )

v-min-value ( x n -- x )

v-max-value ( x n -- x )

v-regexp ( str what regexp -- str )


Simple validators:
v-required ( str -- str )

v-number ( str -- n )

v-integer ( str -- n )

v-one-line ( str -- str )

v-one-word ( str -- str )

v-captcha ( str -- str )

v-checkbox ( str -- ? )


More complex validators:
v-email ( str -- str )

v-url ( str -- str )

v-username ( str -- str )

v-password ( str -- str )

v-credit-card ( str -- n )

v-mode ( str -- str )