Validation

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

Attributes

Companion
class
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 types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

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 either[L, R](left: Validation[L], right: Validation[R]): Validation[Either[L, R]]
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 maxLength(n: Int): Validation[String]
def minLength(n: Int): Validation[String]
def regex(r: Regex): Validation[String]
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

lazy val duration: Validation[String]

Attributes

Inherited from:
Regexs
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
val identifier: Validation[String]

Attributes

Inherited from:
Regexs
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
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
lazy val uuidV4: Validation[String]

Attributes

Inherited from:
Regexs