Input Validator icon

Input Validator

Validate input data against defined rules with multi-language error messages

Input Validator

AI-generated

Summary

Validates configured field values for each input item, converts supported types, and routes successful items to Valid and items with validation errors to Invalid. Define each field’s output name, value expression, expected type, and optional required, null, label, and type-specific validation rules.

Inputs

  • Fields (required) — Add fields with a name (supports dot notation), value or expression, and expected type: array, boolean, date, datetime, email, integer, number, object, phone, string, time, URL, or UUID. Required defaults to true; optional fields with empty values are skipped. Allow Null accepts a null value and includes it in the validated output. Labels customize generated Norwegian and English error summaries. Validation options apply where supported: string length, pattern, allowed values, and trimming; numeric minimum and maximum; date or datetime bounds; and array item limits.
  • Options — Pass Through All Data defaults to true and merges validated fields into the original item; when false, output contains only validated fields. Stop on First Error halts checking a field list at its first error. Error Message Overrides replace the generated summary in either language. Ignore Type Conversion Errors is available, though the implementation still validates the original value when conversion fails.

Output shape

Two output branches: Valid contains items whose configured fields pass validation; Invalid contains an error item for each input item with one or more field errors.

Valid items include converted and validated values under the configured field names, including nested paths for dot notation. With pass-through enabled, those values are merged into the original JSON. Invalid items contain json.error with code VALIDATION_ERROR, English and Norwegian summary messages, and a fields object keyed by configured field name with per-field error codes and messages. Each output item retains its input pairing. Error summaries list up to five field labels, then indicate how many more errors occurred.

Links

Discussion