OneOfValidator

info.fingo.spata.schema.validator.OneOfValidator$

Validator verifying if value is equal to one of expected.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A](allowed: A*): Validator[A]

Creates validator to check if value matches enumeration.

Creates validator to check if value matches enumeration.

Value parameters

allowed

allowed values

Attributes

Returns

validator