object FormDataDecoder
- Source
- FormDataDecoder.scala
- Alphabetic
- By Inheritance
- FormDataDecoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type FormData = Map[String, Chain[String]]
- implicit final class FormDataDecoderSyntax[A] extends AnyVal
- type Result[A] = Validated[NonEmptyList[ParseFailure], A]
Value Members
- def apply[A](f: (FormData) ⇒ Result[A]): FormDataDecoder[A]
- def chain[A](key: String)(implicit arg0: 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 arg0: QueryParamDecoder[A]): FormDataDecoder[A]
- def fieldEither[A](key: String)(implicit qpd: QueryParamDecoder[A]): FormDataDecoder[Either[String, A]]
- def fieldOptional[A](key: String)(implicit arg0: QueryParamDecoder[A]): FormDataDecoder[Option[A]]
- implicit val formDataDecoderInstances: Applicative[FormDataDecoder]
- implicit def formEntityDecoder[F[_], A](implicit arg0: Concurrent[F], fdd: FormDataDecoder[A]): EntityDecoder[F, A]
-
def
list[A](key: String)(implicit arg0: FormDataDecoder[A]): FormDataDecoder[List[A]]
For repeated nested values, assuming that the form parameter name use "[]." as a suffix E.g.
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.
For repeated primitive values, assuming that the form parameter name use "[]" as a suffix E.g. "foos[]"
-
def
nested[A](key: String)(implicit arg0: FormDataDecoder[A]): FormDataDecoder[A]
For nested, this decoder assumes that the form parameter name use "." as deliminator for levels.
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 arg0: FormDataDecoder[A]): FormDataDecoder[Option[A]]
For nested, this decoder assumes that the form parameter name use "." as deliminator for levels.
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".