Value

io.hireproof.structure.Schema$.Value
sealed abstract class Value[A](val default: Option[A], val description: Option[String], val example: Option[A], val name: Option[String], val validations: Chain[Validation[_, _]]) extends Schema[A]

Attributes

Graph
Supertypes
class Schema[A]
trait Structure[A]
class Object
trait Matchable
class Any
Known subtypes
class Any[A]
class Collection[A]
class Dictionary[A]
class Enumeration[A]
class Primitive[A]
class Product[A]
class Sum[A]

Members list

Concise view

Type members

Types

override type Self[a] <: Value[a]

Value members

Abstract methods

def toJsonValue(a: A): Json
def toStringValue(a: A): String

Concrete methods

final def fromJsonValue(json: Json): Validated[Errors, A]
final def fromStringValue(value: String): Validated[Errors, A]

Inherited methods

final def const(value: => A): Self[Unit]

Attributes

Inherited from:
Structure
final def fromJson(json: Option[Json]): Validated[Errors, A]

Attributes

Inherited from:
Schema
final def fromString(value: Option[String]): Validated[Errors, A]

Attributes

Inherited from:
Schema
final def imap[T](f: A => T)(g: T => A): Self[T]

Attributes

Inherited from:
Structure
final def ivalidate[T](validation: Validation[A, T])(g: T => A): Self[T]

Attributes

Inherited from:
Structure
final def jsonDefault: Option[Json]

Attributes

Inherited from:
Schema
final def jsonExample: Option[Json]

Attributes

Inherited from:
Schema
final def merge[T](implicit evidence: Aux[A, T]): Self[T]

Attributes

Inherited from:
Structure
final def setDefault(default: Option[A]): Self[A]

Attributes

Inherited from:
Schema
final def setDescription(description: Option[String]): Self[A]

Attributes

Inherited from:
Schema
final def setExample(example: Option[A]): Self[A]

Attributes

Inherited from:
Schema
final def setName(description: Option[String]): Self[A]

Attributes

Inherited from:
Schema
final def stringDefault: Option[String]

Attributes

Inherited from:
Schema
final def stringExample: Option[String]

Attributes

Inherited from:
Schema
def toJson(a: A): Option[Json]

Attributes

Inherited from:
Schema
def toString(a: A): Option[String]

Attributes

Inherited from:
Schema
final def validate(validation: Validation[A, A]): Self[A]

Attributes

Inherited from:
Structure
final def withDefault(default: A): Self[A]

Attributes

Inherited from:
Schema
final def withDescription(description: String): Self[A]

Attributes

Inherited from:
Schema
final def withExample(example: A): Self[A]

Attributes

Inherited from:
Schema
final def withName(description: String): Self[A]

Attributes

Inherited from:
Schema
final def withoutDefault: Self[A]

Attributes

Inherited from:
Schema
final def withoutDescription: Self[A]

Attributes

Inherited from:
Schema
final def withoutExample: Self[A]

Attributes

Inherited from:
Schema
final def withoutName: Self[A]

Attributes

Inherited from:
Schema

Concrete fields

override val default: Option[A]
override val description: Option[String]
override val example: Option[A]
val name: Option[String]
override val validations: Chain[Validation[_, _]]