Validates that all required fields are set in the target object and throws an error when a required field is missing or when an unknown field is set.
Schema to validate against
Object to validate
Optional
Options that control what is validated
Validates that all required fields are set in the target object and throws an error when a required field is missing or when an unknown field is set.