JsonCodecs

works.iterative.tapir.codecs.JsonCodecs
trait JsonCodecs

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Codecs
object Codecs

Members list

Value members

Concrete methods

def fromValidation[T](v: ZValidation[_, UserMessage, T]): Either[String, T]
def textCodec[T](f: String => ZValidation[_, UserMessage, T]): JsonCodec[T]
def validatedStringCodec[A](factory: ValidatedStringFactory[A]): JsonCodec[A]
def validatedStringDecoder[A](factory: ValidatedStringFactory[A]): JsonDecoder[A]
def validatedStringEncoder[A](factory: ValidatedStringFactory[A]): JsonEncoder[A]

Givens

Givens

given fromValidatedStringCodec[A](using factory: ValidatedStringFactory[A]): JsonCodec[A]
given given_JsonCodec_AccessToken: JsonCodec[AccessToken]
given given_JsonCodec_AuthedUserInfo: JsonCodec[AuthedUserInfo]
given given_JsonCodec_AuthenticationError: JsonCodec[AuthenticationError]
given given_JsonCodec_Avatar: JsonCodec[Avatar]
given given_JsonCodec_BasicProfile: JsonCodec[BasicProfile]
given given_JsonCodec_Claim: JsonCodec[Claim]
given given_JsonCodec_Email: JsonCodec[Email]
given given_JsonCodec_HtmlText: JsonCodec[HtmlText]
given given_JsonCodec_ICO: JsonCodec[ICO]
given given_JsonCodec_Markdown: JsonCodec[Markdown]
given given_JsonCodec_MessageArg: JsonCodec[MessageArg]
given given_JsonCodec_MessageId: JsonCodec[MessageId]
given given_JsonCodec_Moment: JsonCodec[Moment]
given given_JsonCodec_PermissionOp: JsonCodec[PermissionOp]
given given_JsonCodec_PermissionTarget: JsonCodec[PermissionTarget]
given given_JsonCodec_PlainMultiLine: JsonCodec[PlainMultiLine]
given given_JsonCodec_PlainOneLine: JsonCodec[PlainOneLine]
given given_JsonCodec_UserHandle: JsonCodec[UserHandle]
given given_JsonCodec_UserId: JsonCodec[UserId]
given given_JsonCodec_UserMessage: JsonCodec[UserMessage]
given given_JsonCodec_UserRole: JsonCodec[UserRole]