This is a collection of n8n nodes developed by Veritheia.
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.
- Define complex validation schemas using YAML
- Two output branches: one for valid data, one for invalid data
- Comprehensive error reporting
npm install n8n-nodes-veritheia
- Add the YAML Validator node to your workflow
- Configure the schema using the YAML Schema field
- Specify the input data field name
- Connect your data source to the node's input
- Connect the "Valid" output to nodes that handle valid data
- Connect the "Invalid" output to nodes that handle invalid data
type: object
properties:
name:
type: string
min: 2
max: 50
age:
type: number
min: 0
max: 120
email:
type: string
email: true
type: array
items:
type: object
properties:
id:
type: string
uuid: true
name:
type: string
min: 1
max: 10
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
-
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
MIT