UnionSchema

final case class UnionSchema[U](shapeId: ShapeId, hints: Hints, alternatives: Vector[Alt[Schema, U, _]], dispatch: U => WithValue[Schema, U, _]) extends Schema[U]
trait Serializable
trait Product
trait Equals
trait Schema[U]
class Object
trait Matchable
class Any

Value members

Inherited methods

def addHints(hints: Hints): Schema[U]
Inherited from:
Schema
def addHints(hints: Hint*): Schema[U]
Inherited from:
Schema
def compile[F[_]](schematic: Schematic[F]): F[U]
Inherited from:
Schema
def compile[F[_]](fk: PolyFunction[Schema, F]): F[U]
Inherited from:
Schema
def oneOf[Union]: PartiallyAppliedOneOf[Union, U]
Inherited from:
Schema
def optional[Struct]: PartiallyAppliedOptional[Struct, U]
Inherited from:
Schema
Inherited from:
Product
def required[Struct]: PartiallyAppliedRequired[Struct, U]
Inherited from:
Schema
Inherited from:
Schema
Inherited from:
Schema
def validated[C](implicit constraint: Simple[C, U]): Schema[U]
Inherited from:
Schema
def withId(newId: ShapeId): Schema[U]
Inherited from:
Schema