Check if source schema is string or hash before raising