Skip to main content

SchemaValidator

Schema Validator Plugin – Validate Schema

Summary (SEO Meta Description):
The Schema Validator plugin in WeHub validates workflow data against a defined schema.
Ensures data consistency, integrity, and compliance before processing.


Overview

The Schema Validator plugin checks incoming workflow data against a selected schema.
It is useful for data validation, format enforcement, and ensuring interoperability across workflows.

If the data does not match the schema, the workflow can be stopped, redirected, or logged for error handling.


⚙️ Action: Validate Schema

  • Description: Validates input data against a defined schema.
  • Use Case: Prevents invalid or incomplete data from flowing further in the workflow.

Configuration Options:

FieldTypeDescription
LabelStringCustom name for the node (e.g., "Validate Patient Record Schema").
SchemaSchemaSelect the schema against which the data will be validated.
Truncate FieldsBooleanOptionally truncate long fields for performance/logging.

💡 Example Use Cases

  • Healthcare: Validate incoming HL7/FHIR data against strict schemas before transforming.
  • Finance: Ensure transaction payloads conform to regulatory-required formats.
  • ETL Pipelines: Guarantee data cleanliness before loading into warehouses.
  • APIs: Validate request/response payloads in API-driven workflows.

FAQ

Q: What happens if data fails validation?
A: The node can throw an error, stop the workflow, or route to error handling logic.

Q: Can I use multiple schemas?
A: Each node validates against a single schema. Use multiple nodes for multiple schemas.

Q: Does it support nested schemas?
A: Yes, complex and nested JSON schemas are supported.


Keywords: WeHub Schema Validator Plugin, Validate Schema, data validation, schema enforcement, workflow data integrity