Skip to content

@serenity-is/corelib / getValidationRuleMessage

Function: getValidationRuleMessage()

getValidationRuleMessage(rule): string

Defined in: src/ui/helpers/validationrules.ts:131

Gets the message of a validation rule whose check failed: the text of its key, else its message, else the default message of the rule, with the parameters of the rule.

Parameters

rule

ClientValidationRule

The rule, as the server sends it.

Returns

string