Add property validation to nodes using typedInput

This commit is contained in:
Nick O'Leary
2017-01-06 23:18:50 +00:00
parent 4b83d8160f
commit aafcfef387
5 changed files with 8 additions and 8 deletions

View File

@@ -48,7 +48,7 @@
category: 'function',
defaults: {
name: {value:""},
property: {value:"payload", required:true},
property: {value:"payload", required:true, validate: RED.validators.typedInput("propertyType")},
propertyType: { value:"msg" },
rules: {value:[{t:"eq", v:""}]},
checkall: {value:"true", required:true},

View File

@@ -162,7 +162,7 @@
name: {value:""},
mode: {value:"auto"},
build: { value:"string"},
property: { value: "payload"},
property: { value: "payload", validate: RED.validators.typedInput("propertyType")},
propertyType: { value:"msg"},
key: {value:"topic"},
joiner: { value:"\\n"},