FormDataDecoder

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final class FormDataDecoderSyntax[A](decoder: FormDataDecoder[Either[String, A]]) extends AnyVal

Types

type FormData = Map[String, Chain[String]]
type Result[A] = ValidatedNel[ParseFailure, A]

Value members

Concrete methods

def apply[A](f: FormData => Result[A]): FormDataDecoder[A]
def chain[A](key: String)(implicit evidence$6: FormDataDecoder[A]): FormDataDecoder[Chain[A]]
def chainEither[A](key: String)(implicit A: FormDataDecoder[A]): FormDataDecoder[Either[String, Chain[A]]]
def chainOf[A](key: String)(qd: QueryParamDecoder[A]): FormDataDecoder[Chain[A]]
def field[A](key: String)(implicit evidence$2: QueryParamDecoder[A]): FormDataDecoder[A]
def fieldEither[A](key: String)(implicit qpd: QueryParamDecoder[A]): FormDataDecoder[Either[String, A]]
def fieldOptional[A](key: String)(implicit evidence$3: QueryParamDecoder[A]): FormDataDecoder[Option[A]]
def list[A](key: String)(implicit evidence$7: FormDataDecoder[A]): FormDataDecoder[List[A]]

For repeated nested values, assuming that the form parameter name use "[]." as a suffix E.g. "foos[].bar"

For repeated nested values, assuming that the form parameter name use "[]." as a suffix E.g. "foos[].bar"

def listOf[A](key: String)(implicit A: QueryParamDecoder[A]): FormDataDecoder[List[A]]

For repeated primitive values, assuming that the form parameter name use "[]" as a suffix E.g. "foos[]"

For repeated primitive values, assuming that the form parameter name use "[]" as a suffix E.g. "foos[]"

def nested[A](key: String)(implicit evidence$4: FormDataDecoder[A]): FormDataDecoder[A]

For nested, this decoder assumes that the form parameter name use "." as deliminator for levels. E.g. For a field named "bar" inside a nested class under the field "foo", the parameter name is "foo.bar".

For nested, this decoder assumes that the form parameter name use "." as deliminator for levels. E.g. For a field named "bar" inside a nested class under the field "foo", the parameter name is "foo.bar".

def nestedEither[A](key: String)(implicit fdd: FormDataDecoder[A]): FormDataDecoder[Either[String, A]]
def nestedOptional[A](key: String)(implicit evidence$5: FormDataDecoder[A]): FormDataDecoder[Option[A]]

For nested, this decoder assumes that the form parameter name use "." as deliminator for levels. E.g. For a field named "bar" inside a nested class under the field "foo", the parameter name is "foo.bar".

For nested, this decoder assumes that the form parameter name use "." as deliminator for levels. E.g. For a field named "bar" inside a nested class under the field "foo", the parameter name is "foo.bar".

Implicits

Implicits

implicit val formDataDecoderInstances: Applicative[[A] =>> FormDataDecoder[A]]
implicit def formEntityDecoder[F[_], A](implicit evidence$1: Concurrent[F], fdd: FormDataDecoder[A]): EntityDecoder[F, A]