Collection

io.hireproof.structure.Schema$.Collection
See theCollection companion object
sealed abstract class Collection[A](default: Option[A], val delimiter: Delimiter, description: Option[String], example: Option[A], name: Option[String], val schema: Eval[Schema[_]], validations: Chain[Validation[_, _]]) extends Value[A]

Attributes

Companion:
object
Graph
Supertypes
class Value[A]
class Schema[A]
trait Structure[A]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Types

final override type Self[a] = Collection[a]

Value members

Concrete methods

final def copy(default: Option[A], delimiter: Delimiter, description: Option[String], example: Option[A], name: Option[String]): Collection[A]
final override def toJson(a: A): Option[Json]

Attributes

Definition Classes
final override def toString(a: A): Option[String]

Attributes

Definition Classes
final def withDelimiter(delimiter: Delimiter): Collection[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 fromJsonValue(json: Json): Validated[Errors, A]

Attributes

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

Attributes

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

Attributes

Inherited from:
Value
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 toJsonValue(a: A): Json

Attributes

Inherited from:
Value
def toStringValue(a: A): String

Attributes

Inherited from:
Value
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

val schema: Eval[Schema[_]]