CodecExtensions2

sttp.tapir.CodecExtensions2

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Codec.type

Members list

Implicits

Implicits

implicit def delimited[D <: String, T](implicit codec: Codec[String, T, TextPlain], delimiter: ValueOf[D]): Codec[String, Delimited[D, T], TextPlain]

Creates a codec which handles values delimited using D. The implicit T-codec is used for handling each individual value.

Creates a codec which handles values delimited using D. The implicit T-codec is used for handling each individual value.

Upon decoding, the string is split using the delimiter, and then decoded using the T-codec. Upon encoding, the values are first encoded using the T-codec, and then combined using the delimiter.

The codec's schema has the explode attribute set to false.

Attributes