From 85abf58d80b70158e5a34a5a7af972c4548604b9 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 7 Mar 2023 13:25:53 +0530 Subject: [PATCH 1/2] fix: swagger schema webhook test request payload type correction Signed-off-by: Pranav C --- packages/nocodb-sdk/src/lib/Api.ts | 2 +- packages/nocodb/src/schema/swagger.json | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index b3ca3a64b4..6e7af05297 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -1716,7 +1716,7 @@ export interface PluginReqType { export interface PluginTestReqType { /** Plugin Title */ title: string; - /** Plugin Input */ + /** Plugin Input as JSON string */ input: string; } diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index b656a26dcb..f89002758e 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -12728,8 +12728,15 @@ "description": "Plugin Title" }, "input": { - "type": "string", - "description": "Plugin Input" + "oneOf": [ + { + "type": "string", + "description": "Plugin Input as JSON string" + }, + { + "description": "Plugin Input" + } + ] } }, "required": ["title", "input"] From e3cdea306c6049d08cd344f742099c0b8ba5d43d Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 7 Mar 2023 13:37:51 +0530 Subject: [PATCH 2/2] fix: extract slack channels - add missing `value` prop in statement Signed-off-by: Pranav C --- packages/nc-gui/components/webhook/Editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/webhook/Editor.vue b/packages/nc-gui/components/webhook/Editor.vue index 98a7cf8537..eb01b0d50d 100644 --- a/packages/nc-gui/components/webhook/Editor.vue +++ b/packages/nc-gui/components/webhook/Editor.vue @@ -225,7 +225,7 @@ function onNotTypeChange(reset = false) { } if (hook.notification.type === 'Slack') { - slackChannels.value = (apps.value && apps.value.Slack && apps.Slack.parsedInput) || [] + slackChannels.value = (apps.value && apps.value.Slack && apps.value.Slack.parsedInput) || [] } if (hook.notification.type === 'Microsoft Teams') {