com.outworkers.util.lift

ValidationResponseHelper

implicit final class ValidationResponseHelper[+A] extends AnyVal

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ValidationResponseHelper
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ValidationResponseHelper(vd: ValidatedNel[String, A])

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  7. def mapSuccess(pf: (A) ⇒ Future[LiftResponse]): Future[LiftResponse]

    Maps a validation to a LiftResponse if the validation is successful.

    Maps a validation to a LiftResponse if the validation is successful. If the validation is not successful, this method provides a default response mechanism which returns a JSON HTTP 400 response, where the body is an object containing the error code and a list of messages corresponding to each individual error in the applicative functor.

    pf

    The partial function that maps the successful result to a LiftResponse.

    returns

    A future wrapping a Lift Response.

  8. def respond(pf: (A) ⇒ LiftResponse): LiftResponse

    Maps a validation to a LiftResponse if the validation is successful.

    Maps a validation to a LiftResponse if the validation is successful. If the validation is not successful, this method provides a default response mechanism which returns a JSON HTTP 400 response, where the body is an object containing the error code and a list of messages corresponding to each individual error in the applicative functor.

    pf

    The partial function that maps the successful result to a LiftResponse.

    returns

    A future wrapping a Lift Response.

  9. def toString(): String

    Definition Classes
    Any
  10. val vd: ValidatedNel[String, A]

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped