validator: validate_custom now accepts a schema
validator: validate_custom now accepts a schema

validate_custom now expectes the schema directly and does not get it
with the obj_type. This makes it easier for testing.

OParl/validator,OParl/validator