Skip to main content
Version: 3.2

ValidationRule 验证规则

结构声明

interface ValidationRule {
"concept": "ValidationRule", // 产品概念
"label": string, // 验证规则标题
"calleeNamespace": string, // calleeNamespace
"calleeName": string, // calleeName
"arguments": Array<Argument>, // 实际参数
"errorMessage": LogicItem, // 错误信息
"target": LogicItem, // 验证对象
"enableServerValidation": boolean, // 是否启用服务端验证
}

示例

简单示例

{
"concept": "ValidationRule",
"label": "验证规则",
"calleeNamespace": null,
"calleeName": null,
"arguments": [],
"errorMessage": null,
"target": null,
"enableServerValidation": true
}