-
|
Hmm... since I am using the config_rules_validator.py script for data quality checks. How do I ensure that the How should I structure the JSON rules configuration to enforce this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Oh... got it! I can achieve this by using the An example structure is: {
"rules": [
{
"name": "valid_department_code",
"type": "allowed_values",
"column": "department_code",
"values": ["ENG", "SCI"],
"case_sensitive": true
}
]
} |
Beta Was this translation helpful? Give feedback.
Oh... got it! I can achieve this by using the
allowed_valuesrule type in your JSON configuration file.An example structure is:
{ "rules": [ { "name": "valid_department_code", "type": "allowed_values", "column": "department_code", "values": ["ENG", "SCI"], "case_sensitive": true } ] }