Or Validator

Specification

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

Structure Values

Field Name

Type

Description

Required

Default

validatorType

String

The type of validator to construct

Required

name

String

The name of the validator. Must be unique within the validation suite.

Required

description

String

Expanded validator information.

None

validators

List

A list of validator names that should be combined using β€œOr” logic. Validator name matching is not case sensitive.

Required

onNullResult

String

A 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.

null

Example

{
  "validatorType": "or",
  "name": "sample_or_validator",
  "description": "I can combine multiple validators",
  "validators": ["valid_zip_code", "valid_city_name"],
  "onNullResult": "pass"
}

Was this article helpful?
0 out of 0 found this helpful