Template validation
The CLI checks IDs, channels, optional subjects, bodies and flat sample data before any delivery step exists.
Day 059 / n8n / Workflow Automation
A dependency-free Python CLI that validates placeholders, flags missing or unused variables, and previews complete notification templates locally.
The CLI checks IDs, channels, optional subjects, bodies and flat sample data before any delivery step exists.
A preview appears only when every referenced variable has a supplied value; blocked reports list variable names without their values.
Duplicate JSON keys, unknown fields, nested values, duplicate IDs and bounded-size violations fail with a clear validation error.
Stable placeholder extraction
Blocked partial previews
Unused-variable checks
Value-free diagnostics
Three meaningful exit states
Argparse, dataclasses, JSON, regular expressions and unittest keep the build dependency-free.
Human-readable and machine-readable reports support local review and later workflow integration.
Tests cover rendering, token order, missing and unused data, duplicate keys and IDs, invalid fields and exit behavior.