Package

jto

validation

Permalink

package validation

Contains the validation API used by Form.

For example, to define a custom constraint:

val negative = Constraint[Int] {
  case i if i < 0 => Valid
  case _ => Invalid("Must be a negative number.")
}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. validation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Constraint[T] = (T) ⇒ Validated[Seq[ValidationError], T]

    Permalink
  2. class ContravariantSyntax[M[_]] extends AnyRef

    Permalink
  3. class ContravariantSyntaxObs[M[_], A] extends AnyRef

    Permalink
  4. trait DateRules extends AnyRef

    Permalink

    This trait provides default Rule implementations, from String to various date types and format

  5. trait DateWrites extends AnyRef

    Permalink
  6. trait DefaultRules[I] extends GenericRules with DateRules

    Permalink

    DefaultRules provides basic rules implementations for inputs of type I Extends this trait if your implementing a new set of Rules for I.

  7. trait DefaultWrites extends DateWrites

    Permalink
  8. final case class FailProjection[+E, +A](v: Validated[Seq[E], A]) extends Product with Serializable

    Permalink
  9. trait Format[IR, +IW, O] extends RuleLike[IR, O] with WriteLike[O, IW]

    Permalink
    Annotations
    @implicitNotFound( ... )
  10. case class Formatter[IR, IW](path: Path = Path(Nil)) extends Product with Serializable

    Permalink
  11. trait Formatting[IR, IW] extends AnyRef

    Permalink
  12. trait From[I] extends AnyRef

    Permalink
  13. class FunctorSyntax[M[_]] extends AnyRef

    Permalink
  14. class FunctorSyntaxObs[M[_], A] extends AnyRef

    Permalink
  15. trait GenericRules extends AnyRef

    Permalink

    GenericRules provides basic constraints, utility methods on Rules, and completely generic Rules.

    GenericRules provides basic constraints, utility methods on Rules, and completely generic Rules. Extends this trait if your implementing a new set of Rules.

  16. trait GenericWrites[O] extends AnyRef

    Permalink
  17. case class IdxPathNode(idx: Int) extends PathNode with Product with Serializable

    Permalink
  18. type Invalid[+E] = cats.data.Validated.Invalid[E]

    Permalink
  19. class InvariantSyntax[M[_]] extends AnyRef

    Permalink
  20. class InvariantSyntaxObs[M[_], A] extends AnyRef

    Permalink
  21. case class KeyPathNode(key: String) extends PathNode with Product with Serializable

    Permalink
  22. type Mapping[E, I, O] = (I) ⇒ Validated[Seq[E], O]

    Permalink
    Annotations
    @implicitNotFound( ... )
  23. trait NumericTypes2StringWrites extends AnyRef

    Permalink
  24. trait ParsingRules extends AnyRef

    Permalink
  25. class Path extends AnyRef

    Permalink
  26. sealed trait PathNode extends AnyRef

    Permalink
  27. case class Reader[I](path: Path = Path(Nil)) extends Product with Serializable

    Permalink
  28. trait Rule[I, O] extends RuleLike[I, O]

    Permalink
  29. trait RuleLike[I, O] extends AnyRef

    Permalink
  30. trait SyntaxCombine[M[_]] extends AnyRef

    Permalink
  31. trait To[I] extends AnyRef

    Permalink
  32. type VA[O] = cats.data.Validated[Seq[(Path, Seq[ValidationError])], O]

    Permalink
  33. trait VABackCompat[E, A] extends AnyRef

    Permalink
  34. type Valid[+A] = cats.data.Validated.Valid[A]

    Permalink
  35. type Validated[+E, +A] = cats.data.Validated[E, A]

    Permalink
  36. case class ValidationError(messages: Seq[String], args: Any*) extends Product with Serializable

    Permalink

    A validation error.

    A validation error.

    args

    the error message arguments

  37. trait Write[I, +O] extends WriteLike[I, O]

    Permalink
  38. trait WriteLike[I, +O] extends AnyRef

    Permalink
  39. case class Writer[I](path: Path = Path(Nil)) extends Product with Serializable

    Permalink
  40. case class ~[A, B](_1: A, _2: B) extends Product with Serializable

    Permalink

Value Members

  1. object Failure

    Permalink
  2. object Format

    Permalink

    Default formatters.

  3. object Formatting

    Permalink
  4. object From

    Permalink
  5. object GenericRules extends GenericRules

    Permalink
  6. val Invalid: cats.data.Validated.Invalid.type

    Permalink
  7. object MappingMacros

    Permalink
  8. object Path extends Path with Product with Serializable

    Permalink
  9. object Read

    Permalink
  10. object Rule

    Permalink
  11. object RuleLike

    Permalink
  12. object Success

    Permalink

    Backcompat with 1.x.

    Backcompat with 1.x. All the methods are deprecated

  13. object To

    Permalink
  14. val Valid: cats.data.Validated.Valid.type

    Permalink
  15. val Validated: cats.data.Validated.type

    Permalink
  16. object Validation

    Permalink
  17. object ValidationError extends Serializable

    Permalink
  18. object Write

    Permalink
  19. object WriteLike

    Permalink
  20. object \:

    Permalink
  21. implicit def seqAlgebra[A]: Monoid[Seq[A]]

    Permalink
  22. implicit def validatedBackcompat[E, A](va: Validated[Seq[E], A]): VABackCompat[E, A]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped