CRUDUI

Home > @polyspec/crudui-validator > MessagesSpec

MessagesSpec interface

Custom error messages by registered rule name. Any other key fails the load with UNKNOWN_RULE.

Signature:

export interface MessagesSpec 

Properties

Property

Modifiers

Type

Description

accept?

string

(Optional) Error message shown when the accept rule fails.

conditionTree?

string

(Optional) Error message shown when the conditionTree rule fails.

containedIn?

string

(Optional) Error message shown when the containedIn rule fails.

date?

string

(Optional) Error message shown when the date rule fails.

dateISO?

string

(Optional) Error message shown when the dateISO rule fails.

digits?

string

(Optional) Error message shown when the digits rule fails.

email?

string

(Optional) Error message shown when the email rule fails.

enddate?

string

(Optional) Error message shown when the enddate rule fails.

equalTo?

string

(Optional) Error message shown when the equalTo rule fails.

in?

string

(Optional) Error message shown when the in rule fails.

match?

string

(Optional) Error message shown when the match rule fails.

max?

string

(Optional) Error message shown when the max rule fails.

maxcount?

string

(Optional) Error message shown when the maxcount rule fails.

maxFrom?

string

(Optional) Error message shown when the maxFrom rule fails.

maxlength?

string

(Optional) Error message shown when the maxlength rule fails.

min?

string

(Optional) Error message shown when the min rule fails.

mincount?

string

(Optional) Error message shown when the mincount rule fails.

minFrom?

string

(Optional) Error message shown when the minFrom rule fails.

minlength?

string

(Optional) Error message shown when the minlength rule fails.

notEqual?

string

(Optional) Error message shown when the notEqual rule fails.

number?

string

(Optional) Error message shown when the number rule fails.

pattern?

string

(Optional) Alias of match message

range?

string

(Optional) Error message shown when the range rule fails.

rangelength?

string

(Optional) Error message shown when the rangelength rule fails.

reference?

string

(Optional) Error message shown when the reference rule fails.

required?

string

(Optional) Error message shown when the required rule fails.

step?

string

(Optional) Error message shown when the step rule fails.

typeFrom?

string

(Optional) Error message shown when the typeFrom rule fails.

unique?

string

(Optional) Error message shown when the unique rule fails.

url?

string

(Optional) Error message shown when the url rule fails.