PlainTextSchema

oxygen.schema.PlainTextSchema
See thePlainTextSchema companion trait
object PlainTextSchema extends LowPriority1

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
trait LowPriority1
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

case object BearerTokenSchema extends PlainTextSchema[BearerToken]

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PlainTextSchema[BearerToken]
trait SchemaLike[BearerToken]
class Object
trait Matchable
class Any
Show all
Self type
final case class EnumSchema[A](typeTag: TypeTag[A], values: Seq[A], encodeValue: A => String, caseSensitive: Boolean) extends PlainTextSchema[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PlainTextSchema[A]
trait SchemaLike[A]
class Object
trait Matchable
class Any
Show all
final case class JWTSchema[A](typeTag: TypeTag[JWT[A]], payloadSchema: JsonSchema[A]) extends PlainTextSchema[JWT[A]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PlainTextSchema[JWT[A]]
trait SchemaLike[JWT[A]]
class Object
trait Matchable
class Any
Show all
case object StringSchema extends PlainTextSchema[String]

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PlainTextSchema[String]
trait SchemaLike[String]
class Object
trait Matchable
class Any
Show all
Self type
final case class Transform[A, B](underlying: PlainTextSchema[A], typeTag: TypeTag[B], ab: A => B, ba: B => A) extends PlainTextSchema[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PlainTextSchema[B]
trait SchemaLike[B]
class Object
trait Matchable
class Any
Show all
final case class TransformOrFail[A, B](underlying: PlainTextSchema[A], typeTag: TypeTag[B], ab: A => Either[String, B], ba: B => A) extends PlainTextSchema[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PlainTextSchema[B]
trait SchemaLike[B]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Givens

Givens

given bearerToken: PlainTextSchema[BearerToken]
given bigDecimal: PlainTextSchema[BigDecimal]
given bigInt: PlainTextSchema[BigInt]
given boolean: PlainTextSchema[Boolean]
given byte: PlainTextSchema[Byte]
given double: PlainTextSchema[Double]
given float: PlainTextSchema[Float]
given instant: PlainTextSchema[Instant]
given int: PlainTextSchema[Int]
given localDate: PlainTextSchema[LocalDate]
given localDateTime: PlainTextSchema[LocalDateTime]
given localTime: PlainTextSchema[LocalTime]
given long: PlainTextSchema[Long]
given offsetDateTime: PlainTextSchema[OffsetDateTime]
given short: PlainTextSchema[Short]
given standardJWT[A : JsonSchema](using evidence$1: JsonSchema[A], jwtTypeTag: TypeTag[Std[A]], payloadTypeTag: TypeTag[StandardPayload[A]]): PlainTextSchema[Std[A]]
given string: PlainTextSchema[String]
given timeZone: PlainTextSchema[TimeZone]
given uuid: PlainTextSchema[UUID]
given zoneId: PlainTextSchema[ZoneId]
given zoneOffset: PlainTextSchema[ZoneOffset]
given zonedDateTime: PlainTextSchema[ZonedDateTime]

Inherited givens

given jwt[A](using payloadSchema: JsonSchema[A], typeTag: TypeTag[JWT[A]]): PlainTextSchema[JWT[A]]

Attributes

Inherited from:
LowPriority1