From 85abf58d80b70158e5a34a5a7af972c4548604b9 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 7 Mar 2023 13:25:53 +0530 Subject: [PATCH] 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"]