5 min readUpdated Mar 2, 2026

DataValidationNodeEditor Documentation

Overview

The DataValidationNodeEditor is a custom editor component within the Vantage analytics and data platform. It enables users to define validation rules for data, ensuring data integrity and quality before further processing. Users have the flexibility to create rules manually, import them from Google Drive spreadsheets, or utilize predefined snippets retrieved from a context-based API. The component provides two outputs: the validated data and a list of any errors found during validation.

Purpose

The primary purpose of the DataValidationNodeEditor is to facilitate the configuration of data validation rules that will be applied to incoming datasets. By validating data, users can prevent invalid records from propagating through their workflows, which is crucial for maintaining high data quality.

Settings

1. Rules Source

2. Google Drive Rules

3. Context Snippet ID

4. Context Snippet Content

5. Validation Rules

6. Severity

How It Works

Upon initialization, the DataValidationNodeEditor will load the upstream columns from connected nodes, providing context for available validation scopes. The user can then choose how to input validation rules (manually, via Google Drive, or via snippets). The component manages state changes and updates to rules through various internal functions:

The component dynamically updates the validation rules shown in the UI based on the user's selection and actions.

Expected Data

The DataValidationNodeEditor expects the following data structure as input for configuration:

json
{
  "rulesSource": "manual | googleDrive | contextSnippet",
  "googleDriveRules": [],
  "contextSnippetId": null,
  "contextSnippetContent": null,
  "rules": [
    {
      "column": "string", 
      "check": "string", 
      "value": "string | number", 
      "severity": "error | warning"
    }
  ]
}

Use Cases & Examples

Use Case 1: Quality Control in Data Ingestion

A company ingests customer data from various sources and needs to ensure that all email addresses provided are valid and correctly formatted. By utilizing the DataValidationNodeEditor, a validation rule can be created where the 'check' type is set to 'regex' to match a standard email pattern.

Use Case 2: Database Uniqueness Enforcement

When importing transaction records, a financial organization must ensure that transaction IDs are unique to prevent duplicate processing. The unique validation check can be employed, ensuring no two transaction records share the same ID.

Example Configuration for Use Case 1

To validate email addresses using a regex pattern, the component would be configured as follows:

json
{
  "rulesSource": "manual",
  "googleDriveRules": [],
  "contextSnippetId": null,
  "contextSnippetContent": null,
  "rules": [
    {
      "column": "email",
      "check": "regex",
      "value": "^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$", 
      "severity": "error"
    }
  ]
}

This configuration will ensure that any invalid email formats are flagged as errors during data processing.

AI Integrations and Billing Impact

The DataValidationNodeEditor includes functionality to fetch validation rule snippets from an AI API endpoint. Integrating this functionality may incur usage-based API costs depending on the number of requests made or data processed through the endpoint.

By maintaining data integrity through effective validation, organizations using Vantage can potentially reduce costs associated with data errors and enhance trust in their analytics outputs.