Skip to main content

Equals Validator

Specification

{
"validatorType": String,
"name": String,
"description": String,
"fields": FieldSelectorSpec
"value": Double,
"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
fieldsObjectA Field Selector SpecRequired
valueDoubleThe value expected for the fieldRequired
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": "Equals",
"name": "sample_equals_validator",
"description": "I can validate exact matches",
"fields": {
"fieldSelectorType": "Single",
"fieldName": "col_name"
},
"value": 37.5,
"onNullResult": "pass"
}