Validate JSON payloads against a schema with detailed error messages (no AI)
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 10 nodes and runs when another workflow calls it (plus 1 other trigger). It uses only n8n's built-in nodes.
How it runs
Trigger: When another workflow calls it (plus 1 other trigger).
- Schema Validation (Code): runs custom JavaScript code
- Validate Schema (Execute Sub-workflow): calls another n8n workflow
- If: checks a condition and branches into true / false
- Return 400 param error (Respond to Webhook): sends the response back to the webhook caller
- Return Success Response (Respond to Webhook): sends the response back to the webhook caller
- PLACEHOLDER: Source of your data (Edit Fields (Set)): sets 1 field: body
- Call 'Param Schema Validation Template' (Execute Sub-workflow): calls another n8n workflow
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - No Operation, do nothing
n8n-nodes-base.noOp - Execute Sub-workflow
n8n-nodes-base.executeWorkflow
From the author
What is this? A modular schema checker that returns detailed error messages on validation failure. Stop your workflows from breaking due to bad input. This subworkflow validates incoming JSON against a schema you define and returns clear, human readable…