n8n-nodes-veritheia

0.2.0 • Public • Published

n8n-nodes-veritheia

This is a collection of n8n nodes developed by Veritheia.

YAML Validator Node

The YAML Validator node allows you to validate data against a schema defined in YAML format. The node uses Zod for schema definition and validation.

Features

  • Define complex validation schemas using YAML
  • Two output branches: one for valid data, one for invalid data
  • Comprehensive error reporting

Installation

npm install n8n-nodes-veritheia

Usage

  1. Add the YAML Validator node to your workflow
  2. Configure the schema using the YAML Schema field
  3. Specify the input data field name
  4. Connect your data source to the node's input
  5. Connect the "Valid" output to nodes that handle valid data
  6. Connect the "Invalid" output to nodes that handle invalid data

YAML Schema Examples

Simple Object Schema

type: object
properties:
  name:
    type: string
    min: 2
    max: 50
  age:
    type: number
    min: 0
    max: 120
  email:
    type: string
    email: true

Array Schema

type: array
items:
  type: object
  properties:
    id:
      type: string
      uuid: true
    name:
      type: string
min: 1
max: 10

Complex Schema with Nested Objects

type: object
properties:
  user:
    type: object
    properties:
      id:
        type: string
      profile:
        type: object
        properties:
          firstName:
            type: string
          lastName:
            type: string
          age:
            type: number
            int: true
          contact:
            type: object
            properties:
              email:
                type: string
                email: true
              phone:
                type: string
                regex: "^\\+[0-9]{1,3}[0-9]{6,14}$"
  settings:
    type: object
    properties:
      theme:
        type: enum
        values:
          - light
          - dark
          - system
      notifications:
        type: boolean

Supported Schema Types

  • string - Validates strings with options like min/max length, email, URL, UUID, regex
  • number - Validates numbers with options like min/max value, integer, positive
  • boolean - Validates boolean values
  • array - Validates arrays with item validation and min/max length
  • object - Validates objects with property validation
  • enum - Validates against a set of allowed values
  • date - Validates date objects
  • any - Accepts any value
  • union - Validates against multiple schema options
  • nullable - Makes a schema accept null values
  • optional - Makes a schema accept undefined values

License

MIT

/n8n-nodes-veritheia/

    Package Sidebar

    Install

    npm i n8n-nodes-veritheia

    Homepage

    n8n.io

    Weekly Downloads

    4

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    80.8 kB

    Total Files

    10

    Last publish

    Collaborators

    • vvonkledge