mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
JSON schema: remove unused function
This commit is contained in:
parent
40d81358f4
commit
4cdd7978cf
@ -31,15 +31,6 @@ module.exports = function(RED) {
|
||||
|
||||
var node = this;
|
||||
|
||||
this.validateMessage = function(msg) {
|
||||
if (this.compiledSchema(msg[node.property])) {
|
||||
node.send(msg);
|
||||
} else {
|
||||
msg.schemaError = this.compiledSchema.errors;
|
||||
node.error(`${RED._("json.errors.schema-error")}: ${ajv.errorsText(this.compiledSchema.errors)}`, msg);
|
||||
}
|
||||
}
|
||||
|
||||
this.on("input", function(msg) {
|
||||
var validate = false;
|
||||
if (msg.schema) {
|
||||
|
Loading…
Reference in New Issue
Block a user