MaxLenValidator

info.fingo.spata.schema.validator.MaxLenValidator

Validator verifying string maximum length. Takes the length of string after trimming it off white characters. Treats strings with maximum length as valid.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(max: Int): Validator[String]

Creates string maximum length validator.

Creates string maximum length validator.

Value parameters

max

maximum length

Attributes

Returns

validator