object Validator extends ValidatorEnumMacro

Linear Supertypes
ValidatorEnumMacro, AnyRef, scala.Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Validator
  2. ValidatorEnumMacro
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class All[T](validators: Seq[Validator[T]]) extends Validator[T] with scala.Product with Serializable
  2. case class Any[T](validators: Seq[Validator[T]]) extends Validator[T] with scala.Product with Serializable
  3. case class CollectionElements[E, C[_]](elementValidator: Validator[E], toIterable: (C[E]) ⇒ Iterable[E]) extends Single[C[E]] with scala.Product with Serializable
  4. case class Coproduct[T](ctx: SealedTrait[Validator, T]) extends Single[T] with scala.Product with Serializable
  5. case class Custom[T](doValidate: (T) ⇒ List[ValidationError[_]], showMessage: Option[String] = None) extends Single[T] with scala.Product with Serializable
  6. type EncodeToRaw[T] = (T) ⇒ Option[scala.Any]
  7. case class Enum[T](possibleValues: List[T], encode: Option[EncodeToRaw[T]]) extends Primitive[T] with scala.Product with Serializable
  8. case class Mapped[TT, T](wrapped: Validator[T], g: (TT) ⇒ T) extends Validator[TT] with scala.Product with Serializable
  9. case class Max[T](value: T, exclusive: Boolean)(implicit valueIsNumeric: Numeric[T]) extends Primitive[T] with scala.Product with Serializable
  10. case class MaxLength[T <: String](value: Int) extends Primitive[T] with scala.Product with Serializable
  11. case class MaxSize[T, C[_] <: Iterable[_]](value: Int) extends Primitive[C[T]] with scala.Product with Serializable
  12. case class Min[T](value: T, exclusive: Boolean)(implicit valueIsNumeric: Numeric[T]) extends Primitive[T] with scala.Product with Serializable
  13. case class MinLength[T <: String](value: Int) extends Primitive[T] with scala.Product with Serializable
  14. case class MinSize[T, C[_] <: Iterable[_]](value: Int) extends Primitive[C[T]] with scala.Product with Serializable
  15. case class OpenProduct[E](elementValidator: Validator[E]) extends Single[Map[String, E]] with scala.Product with Serializable
  16. case class Pattern[T <: String](value: String) extends Primitive[T] with scala.Product with Serializable
  17. sealed trait Primitive[T] extends Single[T]
  18. case class Product[T](fields: Map[String, ProductField[T]]) extends Single[T] with scala.Product with Serializable
  19. trait ProductField[T] extends AnyRef
  20. case class Ref[T](_wrapped: Validator[T]) extends Validator[T] with scala.Product with Serializable

    A reference to a recursive validator.

    A reference to a recursive validator. Should be set once during construction of the validator tree.

  21. sealed trait Single[T] extends Validator[T]

Value Members

  1. final def !=(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def all[T](v: Validator[T]*): Validator[T]
  5. def any[T](v: Validator[T]*): Validator[T]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def custom[T](doValidate: (T) ⇒ List[ValidationError[_]], showMessage: Option[String] = None): Validator[T]
  9. def enum[T](possibleValues: List[T], encode: EncodeToRaw[T]): Enum[T]

    encode

    Specify how values of this type can be encoded to a raw value, which will be used for documentation. This will be automatically inferred if the validator is directly added to a codec.

  10. def enum[T](possibleValues: List[T]): Enum[T]
  11. macro def enum[T]: Enum[T]

    Creates an enum validator where all subtypes of the sealed hierarchy T are objects.

    Creates an enum validator where all subtypes of the sealed hierarchy T are objects. This enumeration will only be used for documentation, as a value outside of the allowed values will not be decoded in the first place (the decoder has no other option than to fail).

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def max[T](value: T, exclusive: Boolean = false)(implicit arg0: Numeric[T]): Primitive[T]
  18. def maxLength[T <: String](value: Int): Primitive[T]
  19. def maxSize[T, C[_] <: Iterable[_]](value: Int): Primitive[C[T]]
  20. def min[T](value: T, exclusive: Boolean = false)(implicit arg0: Numeric[T]): Primitive[T]
  21. def minLength[T <: String](value: Int): Primitive[T]
  22. def minSize[T, C[_] <: Iterable[_]](value: Int): Primitive[C[T]]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def openProduct[V](elemValidator: Validator[V]): Validator[Map[String, V]]
  27. def pass[T]: Validator[T]

    A validator instance that always pass.

  28. def pattern[T <: String](value: String): Primitive[T]
  29. def reject[T]: Validator[T]

    A validator instance that always reject.

  30. def show[T](v: Validator[T]): Option[String]
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def validatorForEnum[E](c: Context)(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[E]): scala.reflect.macros.blackbox.Context.Expr[Enum[E]]
    Definition Classes
    ValidatorEnumMacro
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. object Ref extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from ValidatorEnumMacro

Inherited from AnyRef

Inherited from scala.Any

Ungrouped