Skip to main content
The Validate JSON Schema action checks workflow data against a JSON Schema. It returns a boolean and every validation error. For object schemas, it also creates outputs for the schema’s top-level properties.

Inputs

Outputs

The schema editor uses top-level type and properties to configure the additional outputs. String, number, integer, boolean, and object properties receive matching workflow types; arrays and unknown schema types remain untyped.

Example: validate a customer

Use this schema:
The node exposes name, age, and active as outputs. For:
Is Valid is false, and Errors includes an entry similar to:
The property outputs still expose the supplied values, even when validation fails. Use Is Valid to guard any branch that consumes them.
Validation does not coerce types or remove additional properties. The string "18" does not satisfy an integer schema, and the returned values are the original input values.

Error behavior

Validation failures are normal results: Is Valid becomes false, and Errors describes every detected problem. By contrast, malformed JSON or an invalid schema causes the action itself to fail before data can be validated.
JSON does not allow comments, trailing commas, or single-quoted strings. Parse the schema as JSON and try again.
The schema defines the output because the property exists under properties, but the input data did not provide that own top-level key. Check Is Valid and Errors before using the output.
The validator collects all errors it can detect in one pass. Fix the reported schema-level or parent-value problem first; additional nested checks may only become meaningful afterward.