TransformOrFail

oxygen.schema.JsonSchema.TransformOrFail
final case class TransformOrFail[A, B] extends NonProductLike[B]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NonProductLike[B]
trait JsonSchema[B]
trait SchemaLike[B]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

object unsafe

There are times when you only care about encoding or decoding, and not the other. This makes that possible. If you try to do the thing you explicitly decided not to implement, you will get a runtime exception.

There are times when you only care about encoding or decoding, and not the other. This makes that possible. If you try to do the thing you explicitly decided not to implement, you will get a runtime exception.

Attributes

Inherited from:
SchemaLike
Supertypes
class Object
trait Matchable
class Any

Inherited types

final override type S[a] = JsonSchema[a]

Attributes

Inherited from:
NonProductLike

Value members

Inherited methods

final override def decode(string: String): Either[String, B]

Attributes

Definition Classes
Inherited from:
JsonSchema
final override def encode(value: B): String

Attributes

Definition Classes
Inherited from:
JsonSchema
final def jsonCodec: JsonCodec[B]

Attributes

Inherited from:
JsonSchema
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final override def transform[B](ab: B => B, ba: B => B)(using newTypeTag: TypeTag[B]): JsonSchema[B]

Attributes

Definition Classes
Inherited from:
NonProductLike
final def transformAttempt[B](ab: B => B, ba: B => B)(using newTypeTag: TypeTag[B]): S[B]

Attributes

Inherited from:
SchemaLike
final def transformAttemptObscure[B](ab: B => B, ba: B => B)(using newTypeTag: TypeTag[B]): S[B]

Attributes

Inherited from:
SchemaLike
final def transformOption[B](ab: B => Option[B], ba: B => B)(using newTypeTag: TypeTag[B]): S[B]

Attributes

Inherited from:
SchemaLike
final def transformOptionObscure[B](ab: B => Option[B], ba: B => B)(using newTypeTag: TypeTag[B]): S[B]

Attributes

Inherited from:
SchemaLike
final override def transformOrFail[B](ab: B => Either[String, B], ba: B => B)(using newTypeTag: TypeTag[B]): JsonSchema[B]

Attributes

Definition Classes
Inherited from:
NonProductLike

Concrete fields

override val jsonDecoder: JsonDecoder[B]
override val jsonEncoder: JsonEncoder[B]