Registry / testing / node-red-contrib-full-msg-json-schema-validation

node-red-contrib-full-msg-json-schema-validation

JSON →
library1.1.0jsnpmunverified

A Node-RED node for validating JSON objects against a JSON Schema. Current stable version is 1.1.0. This package provides a custom node that validates a specified property of the message (msg) against a user-provided JSON Schema. It outputs messages on two outputs: OK for valid and KO for invalid, with an error explanation added to msg on the KO output. It integrates directly into Node-RED's flow editor, requiring no additional code. Compared to other Node-RED validation nodes, it focuses on simplicity and schema-based validation of arbitrary message properties. Release cadence is low, with infrequent updates.

npm install node-red-contrib-full-msg-json-schema-validation
INSTALL
IMPORT
SIG · NODE-RED-CONTRIB-F
N
node-red-contrib-full-msg-json-schema-validation
testingjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

node
Install via Node-RED palette or npm: npm install node-red-contrib-full-msg-json-schema-validation
import { node } from 'node-red-contrib-full-msg-json-schema-validation'
This package is a Node-RED node, not a library. It is installed and used within Node-RED's flow editor; no JavaScript imports are needed.

Shows how to install and configure the Node-RED node for JSON Schema validation.

// No code needed. Install via Node-RED palette manager or run: // npm install node-red-contrib-full-msg-json-schema-validation // Then in Node-RED, add a "full-json-schema-validation" node. // Configure: select property (e.g., msg.payload) and paste JSON Schema.
Debug
Known issues
gotchaNode must be deployed after changing schema or property selection.
fix
Click Deploy after any configuration change.
affects: <=1.1.0
Errors
Common errors & fixes
msg.error is undefined on KO output
The node only adds the error object when validation fails; ensure you are checking the correct output (second output).
fix
Connect only the second output (KO) to a debug node to see the error.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
node-redrequiredRuntime dependency: the node runs inside Node-RED, requiring its API.
Agent activity
4 hits · last 30 days
node
4
Resources
node-red-contrib-full-msg-json-schema-validation — npm install node-red-contrib-full-msg-json-schema-validation · libregistry