Validation

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

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
trait Time
trait Regexs
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def allOf[A](vs: Validation[A]*): Validation[A]
def allOf[A](vl: Iterable[Validation[A]]): Validation[A]
def anyOf[A](vs: Validation[A]*): Validation[A]
def anyOf[A](vl: Iterable[Validation[A]]): Validation[A]
def between[A](lower: A, upper: A)(implicit numType: NumType[A]): Validation[A]
def equalTo[A](value: A)(implicit numType: NumType[A]): Validation[A]
def fail[A]: Validation[A]
def greaterThan[A](value: A)(implicit numType: NumType[A]): Validation[A]
def lessThan[A](value: A)(implicit numType: NumType[A]): Validation[A]
def succeed[A]: Validation[A]

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

Inherited fields

Attributes

Inherited from:
Regexs

Checks whether a certain string represents a valid email address.

Checks whether a certain string represents a valid email address.

Attributes

Inherited from:
Regexs

Attributes

Inherited from:
Regexs

Checks whether a certain string represents a valid IPv4 address.

Checks whether a certain string represents a valid IPv4 address.

Attributes

Inherited from:
Regexs

Checks whether a certain string represents a valid IPv6 address.

Checks whether a certain string represents a valid IPv6 address.

Attributes

Inherited from:
Regexs

Attributes

Inherited from:
Regexs