Input Validation icon

Input Validation

Validate incoming data and route to Valid or Invalid outputs

Input Validation

AI-generated

Summary

Validates each incoming item’s JSON against configurable rule groups and sends passing items to the Valid output or failures to the Invalid output. Missing fields with a configured default are skipped for validation and filled into the Valid item’s JSON.

Inputs

  • Combine Groups — Choose AND to require every rule group to pass, or OR to require at least one.
  • Rule Groups — Add groups of conditions. Within each group, choose AND to require every condition or OR to require at least one. Each condition requires a dot-notation field path and an operation: Is Empty, Is Not Empty, Contains, Does Not Contain, Equals, Does Not Equal, Greater Than, Less Than, Is True, Is False, or Is Boolean. Comparison operations use the Value field. Set Default Value to fill a missing field on the Valid output; boolean operations accept true/false and 1/0 defaults. An optional Error Message customizes a failed condition’s message.
  • Ignore Case — Defaults to true; controls case sensitivity for Contains, Does Not Contain, Equals, and Does Not Equal.
  • Error Status Code — Defaults to 400; included in the Invalid output when validation fails.
  • Include Original Input — Defaults to false; when enabled, adds the original JSON under original in the Invalid output.
  • Error Message — Defaults to “Validation failed”; summary message included in the Invalid output.

Output shape

Two outputs: Valid and Invalid, each containing a list of items.

Valid items retain their input item data, with configured defaults applied to a copied JSON object when fields are missing. If no rule groups are configured, items pass through to Valid. Invalid items contain JSON with valid: false, statusCode, message, a joined error string, and an errors array of failed condition details; original is included only when enabled. Execution errors are thrown unless Continue On Fail is enabled, in which case they are sent to Invalid with statusCode 500.

Links

Discussion