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

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