SchemaRepr

zio.blocks.schema.SchemaRepr
See theSchemaRepr companion trait
object SchemaRepr

Attributes

Companion
trait
Source
SchemaRepr.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
SchemaRepr.type

Members list

Type members

Classlikes

final case class Map(key: SchemaRepr, value: SchemaRepr) extends SchemaRepr

A map type with key and value schemas.

A map type with key and value schemas.

Attributes

Source
SchemaRepr.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
final case class Nominal(name: String) extends SchemaRepr

A named type reference (e.g., Person, Address).

A named type reference (e.g., Person, Address).

Attributes

Source
SchemaRepr.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
final case class Optional(inner: SchemaRepr) extends SchemaRepr

An optional type.

An optional type.

Attributes

Source
SchemaRepr.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
final case class Primitive(name: String) extends SchemaRepr

A primitive type (e.g., string, int, boolean).

A primitive type (e.g., string, int, boolean).

Attributes

Source
SchemaRepr.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
final case class Record(fields: IndexedSeq[(String, SchemaRepr)]) extends SchemaRepr

A structural record type with named fields.

A structural record type with named fields.

Attributes

Source
SchemaRepr.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
final case class Sequence(element: SchemaRepr) extends SchemaRepr

A sequence type (list, set, array).

A sequence type (list, set, array).

Attributes

Source
SchemaRepr.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
final case class Variant(cases: IndexedSeq[(String, SchemaRepr)]) extends SchemaRepr

A structural variant (sum) type with named cases.

A structural variant (sum) type with named cases.

Attributes

Source
SchemaRepr.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
case object Wildcard extends SchemaRepr

Matches any type.

Matches any type.

Attributes

Source
SchemaRepr.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all
Self type
Wildcard.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def render(repr: SchemaRepr): String

Renders a SchemaRepr to its string representation.

Renders a SchemaRepr to its string representation.

Attributes

Source
SchemaRepr.scala

Implicits

Implicits

implicit lazy val mapSchema: Schema[Map]

Attributes

Source
SchemaRepr.scala
implicit lazy val nominalSchema: Schema[Nominal]

Attributes

Source
SchemaRepr.scala
implicit lazy val optionalSchema: Schema[Optional]

Attributes

Source
SchemaRepr.scala
implicit lazy val primitiveSchema: Schema[Primitive]

Attributes

Source
SchemaRepr.scala
implicit lazy val recordSchema: Schema[Record]

Attributes

Source
SchemaRepr.scala
implicit lazy val schemaReprSchema: Schema[SchemaRepr]

Attributes

Source
SchemaRepr.scala
implicit lazy val sequenceSchema: Schema[Sequence]

Attributes

Source
SchemaRepr.scala
implicit lazy val variantSchema: Schema[Variant]

Attributes

Source
SchemaRepr.scala
implicit lazy val wildcardSchema: Schema[Wildcard.type]

Attributes

Source
SchemaRepr.scala