validate

class validate[T](val v: Validator[T]) extends StaticAnnotation with Serializable

Adds the v validator to the schema using Schema.validate. Note that the type of the validator must match exactly the type of the class/field. This is not checked at compile-time, and might cause run-time exceptions. To validate elements of collections or Options, use validateEach.

trait Serializable
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Value members

Concrete fields

val v: Validator[T]