Home > validator > yup > MixedSchema > validatePlus
验证增强,包括:对象顺序验证、返回结果包含错误信息。
Signature:
validatePlus(value: T, options?: SchemaValidateOptions): Promise<{
error?: ValidationError;
data: T;
}>;
| Parameter | Type | Description |
|---|---|---|
| value | T | |
| options | SchemaValidateOptions | (Optional) |
Returns:
Promise<{ error?: ValidationError; data: T; }>