Optional
If true, synchronous validation is forced as much as possible. There may be cases, with custom schemas, where this isn't possible, and in such case a Promise will be returned, which one may which to check for -- using is-promise, for example.
true
is-promise
false
The mode for validation.
Individual schemas may lower the validation mode.
'hard'
If
true, synchronous validation is forced as much as possible. There may be cases, with custom schemas, where this isn't possible, and in such case a Promise will be returned, which one may which to check for -- usingis-promise, for example.