Validates a given object against a given schema. Throws an error if the object is invalid
The object to be validated
Validates a given object against a given schema. Throws an error if the object is invalid