Equals Validator

Specification

{
  "validatorType": String,
  "name": String,
  "description": String,
  "fields": FieldSelectorSpec
  "value": Double
}

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

fields

Object

A Field Selector Spec

Required

value

Double

The value expected for the field

Required

Example

{
  "validatorType": "Equals",
  "name": "sample_equals_validator",
  "description": "I can validate exact matches",
  "fields": {
    "fieldSelectorType": "Single",
    "fieldName": "col_name"
  },
  "value": 37.5
}

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