Returns the value (a cast value if options.strict
is false) if the value is valid,
and throws the errors otherwise.
This method is asynchronous and returns a Promise object, that is fulfilled with the value, or rejected with a ValidationError.
the data to validate
an object hash containing any schema options you may want to override (or specify for the first time).
Validate a deeply nested path within the schema. Similar to how reach works, but uses the resulting schema as the subject for validation.
to validate
the root value relative to the starting schema, not the value at the nested path.
an object hash containing any schema options you may want to override (or specify for the first time).
Generated using TypeDoc
A yup like schema to perform validation.