net.hamnaberg.schema

Type members

Classlikes

sealed trait Bound
Companion
object
object Bound
Companion
class
sealed trait BoundCompanion[A]
final case class Bounds(min: Option[Bound], max: Option[Bound])
@implicitNotFound("Cannot find an implicit Prism[${A}, ${B}]. Write an instance manually, or check whether ${B} is a subtype of ${A} if you want the library to provide one for you automatically.")
final case class Prism[A, B](tryGet: A => Option[B], inject: B => A)

Selects a branch of a coproduct type.

Selects a branch of a coproduct type.

Companion
object
object Prism extends LowPrioPrism
Companion
class
sealed trait Schema[A]
Companion
object
object Schema
Companion
class
final case class ValidationError(message: String, history: List[CursorOp])
object structure
object syntax