Schema validator for objects.