Schema Validator icon

Schema Validator

Validates JSON data against JSON Schema with AJV, supporting formats and custom error messages

Schema Validator

AI-generated

Summary

Validate JSON data items against a single JSON schema or multiple schemas with configurable validation options, supporting input from the node's data or custom JSON.

Inputs

  • Validation Mode (required) — Choose to validate all items against a single JSON schema or validate each against multiple schemas with different configurations.
  • JSON Schema (required) — The JSON Schema to validate against when using Single Schema mode; supports Draft 7 and ajv-formats.
  • Data Source (required) — Select whether to validate the current input data or custom JSON data (supports expressions and arrays).
  • Custom JSON — Custom JSON data to validate if chosen as the data source in Single Schema mode; supports expressions.
  • Schemas (required) — Define multiple named JSON schemas and optional JSON data paths for validation in Multiple Schemas mode.
  • Match Mode (required) — Select how to combine multiple schema validations: item is valid if all schemas pass or if any pass.
  • Options — Configure AJV validation options such as enabling formats, custom errors, strict mode, type coercion, error details, inclusion of original data, and single output format.

Output shape

a list of items

Returns all input items with added validation status and error details per item. Items are separated into valid and invalid outputs unless configured to output all to a single output. Validation details include error messages and optionally include original data and validated data with type coercion applied.

Links

Discussion