Skip to main content

And Validator

Specification

{
"validatorType": String,
"name": String,
"description": String,
"validators": List<String>,
"onNullResult": String
}

Structure values

Field NameTypeDescriptionRequiredDefault
validatorTypeStringThe type of validator to constructRequired
nameStringThe name of the validator. Must be unique within the validation suite.Required
descriptionStringExpanded validator information.None
validatorsListA list of validator names that should be combined using “And” logic. Validator name matching is not case sensitive.Required
onNullResultStringA value of pass, null, or fail that describes how to process null values. Null aggregates them into a null column. Pass aggregates them in with the other passing values. Fail aggregates them in with the other failing values.fail

Example

{
"validatorType": "and",
"name": "sample_and_validator",
"description": "I can combine multiple validators",
"validators": ["valid_zip_code", "starts_with_1"],
"onNullResult": "pass"
}