(values) => object | new Promise: Object

This form of validation enables you to create validation function for whole form. It is useful for some cross validation between multiple fields etc. Detailed information can be found here.