def validate(instance):
jsonschema.validate(<EOL>to_dict(instance, dict_type=dict), build_schema(instance.__class__)<EOL>)<EOL>
Validates a given ``instance``.

    :param object instance: The instance to validate
    :raises jsonschema.exceptions.ValidationError: On failed validation