@@ -478,7 +478,8 @@ module.exports = function (RED) {
478478                    const urivars = prop.hasOwnProperty("uriVariables") ? msg.payload : { } 
479479                    if (prop.uriVariables) { 
480480                        const ajv = new Ajv({allErrors: true , strict: false , validateFormats: false }  );
481-                         if (!ajv.validate(prop.uriVariables, urivars)) { 
481+                         const uvschema = {  type: " object" } 
482+                         if (!ajv.validate(uvschema, urivars)) { 
482483                            node.warn(`input schema validation error: ${ajv.errorsText()}  `, msg);
483484                        }
484485                    }
@@ -512,7 +513,8 @@ module.exports = function (RED) {
512513                const urivars = prop.hasOwnProperty(" uriVariables" }  ;
513514                if (prop.uriVariables) { 
514515                    const ajv = new Ajv({allErrors: true , strict: false , validateFormats: false }  );
515-                     if (!ajv.validate(prop.uriVariables, urivars)) { 
516+                     const uvschema = {  type: " object" } 
517+                     if (!ajv.validate(uvschema, urivars)) { 
516518                        node.warn(`input schema validation error: ${ajv.errorsText()}  `, msg);
517519                    }
518520                }
@@ -533,7 +535,8 @@ module.exports = function (RED) {
533535                const urivars = act.hasOwnProperty("uriVariables") ? msg.payload : { } 
534536                if (act.uriVariables) { 
535537                    const ajv = new Ajv({allErrors: true , strict: false , validateFormats: false }  );
536-                     if (!ajv.validate(act.uriVariables, urivars)) { 
538+                     const uvschema = {  type: " object" } 
539+                     if (!ajv.validate(uvschema, urivars)) { 
537540                        node.warn(`input schema validation error: ${ajv.errorsText()}  `, msg);
538541                    }
539542                }
@@ -556,7 +559,8 @@ module.exports = function (RED) {
556559            const urivars = ev.hasOwnProperty(" uriVariables" }  ;
557560            if (ev.uriVariables) { 
558561                const ajv = new Ajv({allErrors: true , strict: false , validateFormats: false }  );
559-                 if (!ajv.validate(ev.uriVariables, urivars)) { 
562+                 const uvschema = {  type: " object" } 
563+                 if (!ajv.validate(uvschema, urivars)) { 
560564                    node.warn(`input schema validation error: ${ajv.errorsText()}  `, msg);
561565                }
562566            }
0 commit comments