StringsValidator

info.fingo.spata.schema.validator.StringsValidator

Validator verifying if string matches one of expected. The comparison is case insensitive. This validator does not take locale into account and uses String.equalsIgnoreCase. The source string is trimmed off white spaces before comparison.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

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

Creates validator to check if string matches enumeration.

Creates validator to check if string matches enumeration.

Value parameters

allowed

allowed values

Attributes

Returns

validator