Pattern

sttp.tapir.Validator.Pattern
case class Pattern[T <: String](value: String) extends Primitive[T]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Primitive[T]
trait Validator[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def doValidate(t: T): ValidationResult

Attributes

Definition Classes

Inherited methods

def and(other: Validator[T]): Validator[T]

Attributes

Inherited from:
Validator
override def apply(t: T): List[ValidationError[T]]

Attributes

Definition Classes
Inherited from:
Primitive
def contramap[TT](g: TT => T): Validator[TT]

Attributes

Inherited from:
Validator
def or(other: Validator[T]): Validator[T]

Attributes

Inherited from:
Validator
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def show: Option[String]

Attributes

Inherited from:
Validator