Schema

net.hamnaberg.schema.Schema
See theSchema companion trait
object Schema

Attributes

Companion
trait
Source
Schema.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Schema.type

Members list

Type members

Classlikes

class AltBuilder[A]

Attributes

Source
Schema.scala
Supertypes
class Object
trait Matchable
class Any
class FieldBuilder[R]

Attributes

Source
Schema.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def _dateFormat[A <: TemporalAccessor](formatter: DateTimeFormatter, typ: String, f: (String, DateTimeFormatter) => A): Schema[A]

Attributes

Source
Schema.scala
def allOf[A](schemas: Type[Schema[A]], schema: Option[Schema[A]]): Schema[A]

Attributes

Source
Schema.scala
def alt[R]: AltBuilder[R]

Attributes

Source
Schema.scala
def alternatives[A](cases: Chain[Alt[A]]): Schema[A]

Attributes

Source
Schema.scala
def any: Schema[Json]

Attributes

Source
Schema.scala
def anyOf[A](schemas: Type[Schema[A]], schema: Option[Schema[A]]): Schema[A]

Attributes

Source
Schema.scala
def apply[A](implicit S: Schema[A]): Schema[A]

Attributes

Source
Schema.scala

Attributes

Source
Schema.scala

Attributes

Source
Schema.scala

Attributes

Source
Schema.scala
def boundedInt(bounds: Bounds[Int]): Schema[Int]

Attributes

Source
Schema.scala
def boundedLong(bounds: Bounds[Long]): Schema[Long]

Attributes

Source
Schema.scala
def custom[A](schema: Schema, encoder: Encoder[A], decoder: Decoder[A]): Schema[A]

Attributes

Source
Schema.scala
def defer[A](schema: => Schema[A]): Schema[A]

Attributes

Source
Schema.scala

Attributes

Source
Schema.scala
def field[R]: FieldBuilder[R]

Attributes

Source
Schema.scala
def fields[R](p: FreeApplicative[[_] =>> Field[R, _$19], R]): Schema[R]

Attributes

Source
Schema.scala
def oneOf[A](b: (AltBuilder[A]) => Chain[Alt[A]]): Schema[A]

Attributes

Source
Schema.scala
def record[R](b: (FieldBuilder[R]) => FreeApplicative[[_] =>> Field[R, _$20], R]): Schema[R]

Attributes

Source
Schema.scala
def reference(ref: String): Schema[Json]

Attributes

Source
Schema.scala
def string[A](format: Option[String], minLength: Option[Int], maxLength: Option[Int], pattern: Option[Pattern]): Schema[String]

Attributes

Source
Schema.scala

Implicits

Implicits

implicit val anything: Schema[Json]

Attributes

Source
Schema.scala
implicit val bigInt: Schema[BigInt]

Attributes

Source
Schema.scala
implicit val double: Schema[Double]

Attributes

Source
Schema.scala
implicit val duration: Schema[Duration]

Attributes

Source
Schema.scala
implicit val float: Schema[Float]

Attributes

Source
Schema.scala
implicit val instant: Schema[Instant]

Attributes

Source
Schema.scala
implicit val int: Schema[Int]

Attributes

Source
Schema.scala
implicit val localDate: Schema[LocalDate]

Attributes

Source
Schema.scala
implicit val localTime: Schema[LocalTime]

Attributes

Source
Schema.scala
implicit val long: Schema[Long]

Attributes

Source
Schema.scala
implicit val offsetDateTime: Schema[OffsetDateTime]

Attributes

Source
Schema.scala
implicit val stringInstance: Schema[String]

Attributes

Source
Schema.scala
implicit def unboundedList[A](implicit s: Schema[A]): Schema[List[A]]

Attributes

Source
Schema.scala
implicit def unboundedSeq[A](implicit s: Schema[A]): Schema[Seq[A]]

Attributes

Source
Schema.scala
implicit def unboundedVector[A](implicit s: Schema[A]): Schema[Vector[A]]

Attributes

Source
Schema.scala
implicit val uuid: Schema[UUID]

Attributes

Source
Schema.scala
implicit val zonedDateTime: Schema[ZonedDateTime]

Attributes

Source
Schema.scala