validate.js icon indicating copy to clipboard operation
validate.js copied to clipboard

Support custom validators in the constraints schema

Open ansman opened this issue 11 years ago • 4 comments

This would be useful for when you want a validator to be used in just a special case.

The format could be:

{
  "<attribute>": {
    "<validator name>": function(value, options, key, attributes) {
      ...
    }
  }
}

ansman avatar Oct 05 '14 13:10 ansman

+1 for this enhancement, would be very useful.

jeron-diovis avatar Dec 10 '15 16:12 jeron-diovis

Is this still planned?

kyeotic avatar Aug 09 '16 17:08 kyeotic

@tyrsius Yes, an implementation is being discussed and implemented in #135

ansman avatar Aug 15 '16 19:08 ansman

Status ?

omansak avatar Jun 22 '20 14:06 omansak