Contract preflight
Checks one sanitized payload against explicit top-level field rules before the data enters an automation.
Day 051 / n8n / Workflow Automation
A dependency-free Python CLI that checks a sanitized workflow payload against a small declarative contract before automation begins.
Checks one sanitized payload against explicit top-level field rules before the data enters an automation.
Limits file size, field count, names, rule keys and collection sizes while rejecting malformed contracts.
Reports field names, generic issue codes and counts without echoing supplied payload values.
Required and optional field checks
Seven supported JSON value types
String, array and numeric limits
Unknown-field allow or reject policy
Duplicate-key rejection
Value-free text and JSON reports
1 MB and 100-field input limits
Twelve standard-library tests
Argparse, JSON, pathlib and regular expressions provide a dependency-free offline command-line tool.
A deliberately small rule format covers common workflow boundaries without claiming full JSON Schema compatibility.
Twelve tests cover valid data, required fields, unknown keys, types, bounds, arrays, duplicate keys and CLI exit behavior.