data_juicer.core.data.config_validator module

exception data_juicer.core.data.config_validator.ConfigValidationError[source]

Bases: Exception

Custom exception for validation errors

class data_juicer.core.data.config_validator.ConfigValidator[source]

Bases: object

Mixin class for configuration validation

CONFIG_VALIDATION_RULES = {'custom_validators': {}, 'field_types': {}, 'optional_fields': [], 'required_fields': []}
validate_config(ds_config: Dict) None[source]

Validate the configuration dictionary.

Parameters:

ds_config – Configuration dictionary to validate

Raises:

ValidationError – If validation fails