Validation

zio.schema.validation.Validation
See theValidation companion class
object Validation extends Regexs, Time

Attributes

Companion
class
Source
Validation.scala
Graph
Supertypes
trait Product
trait Mirror
trait Time
trait Regexs
class Object
trait Matchable
class Any
Show all
Self type
Validation.type

Members list

Type members

Inherited and Abstract types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def allOf[A](vs: Validation[A]*): Validation[A]

Attributes

Source
Validation.scala
def allOf[A](vl: Iterable[Validation[A]]): Validation[A]

Attributes

Source
Validation.scala
def anyOf[A](vs: Validation[A]*): Validation[A]

Attributes

Source
Validation.scala
def anyOf[A](vl: Iterable[Validation[A]]): Validation[A]

Attributes

Source
Validation.scala
def between[A](lower: A, upper: A)(implicit numType: NumType[A]): Validation[A]

Attributes

Source
Validation.scala
def either[L, R](left: Validation[L], right: Validation[R]): Validation[Either[L, R]]

Attributes

Source
Validation.scala
def equalTo[A](value: A)(implicit numType: NumType[A]): Validation[A]

Attributes

Source
Validation.scala
def fail[A]: Validation[A]

Attributes

Source
Validation.scala
def greaterThan[A](value: A)(implicit numType: NumType[A]): Validation[A]

Attributes

Source
Validation.scala
def lessThan[A](value: A)(implicit numType: NumType[A]): Validation[A]

Attributes

Source
Validation.scala

Attributes

Source
Validation.scala

Attributes

Source
Validation.scala

Attributes

Source
Validation.scala
def succeed[A]: Validation[A]

Attributes

Source
Validation.scala

Inherited methods

def time(format: String): Validation[String]

Format is almost the same as the one used by the java.time.format.DateTimeFormatter class.

Format is almost the same as the one used by the java.time.format.DateTimeFormatter class.

a AM/PM always 2 letters h 1-12 hour 1 or 2 digits hh 01-12 hour always 2 digits H 0-23 hour 1 or 2 digits HH 00-23 hour always 2 digits m 0-59 minute 1 or 2 digits mm 00-59 minute always 2 digits s 0-59 second 1 or 2 digits ss 00-59 second always 2 digits

S 0-9 fraction of seconds 1 digits .. SSSSSSSSS 000000000-999999999 maximum number of digits is 9

All other letters are reserved.

Examples: HH:mm 01:10 HH:mm:ss 11:10:30 HH:mm:ss.SSSSSSSSS 21:10:30.123456789 HH:mm a 01:10 AM h:mm:ss 1:10:30

Attributes

Inherited from:
Time
Source
Time.scala

Inherited fields

Attributes

Inherited from:
Regexs
Source
Regexs.scala
lazy val email: Validation[String]

Checks whether a certain string represents a valid email address.

Checks whether a certain string represents a valid email address.

Attributes

Inherited from:
Regexs
Source
Regexs.scala

Attributes

Inherited from:
Regexs
Source
Regexs.scala
lazy val ipV4: Validation[String]

Checks whether a certain string represents a valid IPv4 address.

Checks whether a certain string represents a valid IPv4 address.

Attributes

Inherited from:
Regexs
Source
Regexs.scala
lazy val ipV6: Validation[String]

Checks whether a certain string represents a valid IPv6 address.

Checks whether a certain string represents a valid IPv6 address.

Attributes

Inherited from:
Regexs
Source
Regexs.scala
lazy val uuidV4: Validation[String]

Attributes

Inherited from:
Regexs
Source
Regexs.scala