object Validator extends ValidatorMagnoliaDerivation with ValidatorEnumMacro

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Validator
  2. ValidatorEnumMacro
  3. ValidatorMagnoliaDerivation
  4. AnyRef
  5. 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) ⇒ Boolean, message: String) extends Primitive[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 FieldName(name: String, lowLevelName: String) extends scala.Product with Serializable
  9. case class Mapped[TT, T](wrapped: Validator[T], g: (TT) ⇒ T) extends Single[TT] with scala.Product with Serializable
  10. case class Max[T](value: T, exclusive: Boolean)(implicit valueIsNumeric: Numeric[T]) extends Primitive[T] with scala.Product with Serializable
  11. case class MaxLength[T <: String](value: Int) extends Primitive[T] with scala.Product with Serializable
  12. case class MaxSize[T, C[_] <: Iterable[_]](value: Int) extends Primitive[C[T]] with scala.Product with Serializable
  13. case class Min[T](value: T, exclusive: Boolean)(implicit valueIsNumeric: Numeric[T]) extends Primitive[T] with scala.Product with Serializable
  14. case class MinLength[T <: String](value: Int) extends Primitive[T] with scala.Product with Serializable
  15. case class MinSize[T, C[_] <: Iterable[_]](value: Int) extends Primitive[C[T]] with scala.Product with Serializable
  16. case class OpenProduct[E](elementValidator: Validator[E]) extends Single[Map[String, E]] with scala.Product with Serializable
  17. case class Pattern[T <: String](value: String) extends Primitive[T] with scala.Product with Serializable
  18. sealed trait Primitive[T] extends Single[T]
  19. case class Product[T](fields: Map[String, ProductField[T]]) extends Single[T] with scala.Product with Serializable
  20. trait ProductField[T] extends AnyRef
  21. sealed trait Single[T] extends Validator[T]
  22. type Typeclass[T] = Validator[T]
    Definition Classes
    ValidatorMagnoliaDerivation

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. implicit def arrayElements[T](implicit arg0: Validator[T]): Validator[Array[T]]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def combine[T](ctx: CaseClass[Validator, T])(implicit genericDerivationConfig: Configuration): Validator[T]
    Definition Classes
    ValidatorMagnoliaDerivation
  10. def custom[T](doValidate: (T) ⇒ Boolean, message: String): Primitive[T]
  11. def dispatch[T](ctx: SealedTrait[Validator, T]): Validator[T]
    Definition Classes
    ValidatorMagnoliaDerivation
    Annotations
    @silent( "never used" )
  12. 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.

  13. def enum[T](possibleValues: List[T]): Enum[T]
  14. 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).

  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def fallback[T]: Validator[T]
    Definition Classes
    ValidatorMagnoliaDerivation
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. implicit def iterableElements[T, C[X] <: Iterable[X]](implicit arg0: Validator[T]): Validator[C[T]]
  23. def max[T](value: T, exclusive: Boolean = false)(implicit arg0: Numeric[T]): Primitive[T]
  24. def maxLength[T <: String](value: Int): Primitive[T]
  25. def maxSize[T, C[_] <: Iterable[_]](value: Int): Primitive[C[T]]
  26. def min[T](value: T, exclusive: Boolean = false)(implicit arg0: Numeric[T]): Primitive[T]
  27. def minLength[T <: String](value: Int): Primitive[T]
  28. def minSize[T, C[_] <: Iterable[_]](value: Int): Primitive[C[T]]
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. implicit def openProduct[T](implicit arg0: Validator[T]): Validator[Map[String, T]]
  33. implicit def optionElement[T](implicit arg0: Validator[T]): Validator[Option[T]]
  34. def pass[T]: Validator[T]
  35. def pattern[T <: String](value: String): Primitive[T]
  36. def reject[T]: Validator[T]
  37. def show[T](v: Validator[T], visited: Set[Validator[_]] = Set.empty): Option[String]
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. implicit macro def validatorForCaseClass[T]: Validator[T]
    Definition Classes
    ValidatorMagnoliaDerivation
  41. 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
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from ValidatorEnumMacro

Inherited from AnyRef

Inherited from scala.Any

Ungrouped