Validator

sttp.tapir.Validator
See theValidator companion object
sealed trait Validator[T]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class All[T]
class Any[T]
class Mapped[TT, T]
trait Primitive[T]
class Custom[T]
class Enumeration[T]
class Max[T]
class MaxLength[T]
class MaxSize[T, C]
class Min[T]
class MinLength[T]
class MinSize[T, C]
class Pattern[T]

Members list

Concise view

Value members

Abstract methods

def apply(t: T): List[ValidationError[_]]

Concrete methods

def and(other: Validator[T]): Validator[T]
def contramap[TT](g: TT => T): Validator[TT]
def or(other: Validator[T]): Validator[T]
def show: Option[String]