Templates / Validate JSON payloads against a schema with detailed error messages (no AI)

Validate JSON payloads against a schema with detailed error messages (no AI)

Ready for 3.0

by Liam McGarrigle ✓ · 269 views · created 2026-03-20 · Document Extraction

Ready 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.

📬 Weekly n8n 3.0 breakage alerts, free

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).

  1. Schema Validation (Code): runs custom JavaScript code
  2. Validate Schema (Execute Sub-workflow): calls another n8n workflow
  3. If: checks a condition and branches into true / false
  4. Return 400 param error (Respond to Webhook): sends the response back to the webhook caller
  5. Return Success Response (Respond to Webhook): sends the response back to the webhook caller
  6. PLACEHOLDER: Source of your data (Edit Fields (Set)): sets 1 field: body
  7. 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)

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…

Excerpt from Liam McGarrigle's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.