2 min read

Validator

Overview

The Validator node checks upstream data against a configurable rule set. Valid rows proceed to output1; rows that fail validation are routed to output2 with structured error details. Validation failures are treated as business outcomes, not system errors.

Category

Datadata/validator

Settings

SettingTypeDefaultDescription
rulesArray[]Validation rules (field, type, constraints)
strictModeBooleanfalseReject rows with unexpected fields
allowedFieldsArray[]Whitelist of allowed field names (strict mode)
coerceTypesBooleanfalseAttempt to coerce values to expected types before validating
stopOnFirstBooleanfalseStop validation at the first failure per row
sanitizeBooleanfalseStrip HTML, trim whitespace, normalize unicode
dependentRulesArray[]Conditional rules (if fieldA, then fieldB required)

Rule Format

Each rule specifies a field and its constraints:

PropertyDescription
fieldField name to validate
requiredWhether the field must be present
typeExpected type: string, number, boolean, email, date, url
min / maxMin/max value (numbers) or length (strings)
patternRegex pattern the value must match
enumArray of allowed values

Inputs & Outputs

Use Cases

  1. API input validation — Validate form submissions before database writes
  2. Import data quality — Check CSV imports for required fields, valid emails, proper date formats
  3. Compliance checks — Ensure records have all required regulatory fields before processing