Add ability to pass custom struct as module & record to script runner

This commit is contained in:
Denis Arh
2019-08-23 13:49:36 +02:00
parent ffdeef1da2
commit 3db9368a99
5 changed files with 29 additions and 16 deletions
+2 -2
View File
@@ -1508,8 +1508,8 @@
{"name": "source", "type": "string", "title": "Script's source code (overrides scriptID parameter)"},
{"name": "moduleID", "type": "uint64", "title": "Preload module and pass it to the automation script"},
{"name": "recordID", "type": "uint64", "title": "Preload record and pass it to the automation script"},
{"name": "module", "type": "interface{}", "title": "Module to pass to the automation script"},
{"name": "record", "type": "interface{}", "title": "Record to pass to the automation script"}
{"name": "module", "type": "json.RawMessage", "title": "Module to pass to the automation script"},
{"name": "record", "type": "json.RawMessage", "title": "Record to pass to the automation script"}
]
}
}
+2 -2
View File
@@ -271,12 +271,12 @@
{
"name": "module",
"title": "Module to pass to the automation script",
"type": "interface{}"
"type": "json.RawMessage"
},
{
"name": "record",
"title": "Record to pass to the automation script",
"type": "interface{}"
"type": "json.RawMessage"
}
]
}