ba.sake.formson

package ba.sake.formson

Members list

Type members

Classlikes

case class Config(seqWriteMode: SeqWriteMode, objWriteMode: ObjWriteMode)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum FormData(val tpe: String)

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case Simple
case Sequence
case Obj
trait FormDataRW[T]

Maps a T to/from form data map

Maps a T to/from form data map

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FormDataRW

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
FormDataRW.type
enum FormValue(val tpe: String)

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case Str
case File
case ByteArray
sealed class FormsonException(msg: String, cause: Throwable) extends Exception

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ParseError(path: String, msg: String, value: Option[Any])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class ParsingException(val errors: Seq[ParseError]) extends FormsonException

Attributes

Companion
object
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

type FormDataMap = SeqMap[String, Seq[FormValue]]

Represents a raw form data map. Keys are ordered by insertion order. Values are not encoded.

Represents a raw form data map. Keys are ordered by insertion order. Values are not encoded.

Attributes

Value members

Concrete fields

Extensions

Extensions

extension (formDataMap: FormDataMap)
def parseFormDataMap[T](using rw: FormDataRW[T]): T

Parses T from a FormDataMap map.

Parses T from a FormDataMap map.

Attributes

extension [T](value: T)(using rw: FormDataRW[T])

Serializes T to FormDataMap map. Note that key/values are not URL encoded.

Serializes T to FormDataMap map. Note that key/values are not URL encoded.

Value parameters

config

Configures how to serialize sequences and nested objects

rw

Typeclass that does the heavy lifting

Attributes

Returns

FormDataMap