Skip to content

Messages

Oscar edited this page Nov 12, 2018 · 3 revisions

Defined messages

Rule Message
type This is not a valid {rule}
required This field is required
regexp This is not a valid value
min Minimun value is {rule}
max Maximun value is {rule}
minlen Minimun length is {rule}
maxlen Maximun length is {rule}
length Length must be {rule}
equals Must equal the field {rule}
is Must be {rule}
isnot Must not be {rule}
isin Must be one of {rule}
undefined Undefined error

Variables

The variables are elements that will be replaced in the message and are representend like {varName}.

The available variables are:

Name Description
field Will be replaced with the field name and you can customize this with a field: 'name' in rules
rule Will be replaced with the rule name