Browse Source

fix: swagger schema webhook test request payload type correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5261/head
Pranav C 2 years ago
parent
commit
85abf58d80
  1. 2
      packages/nocodb-sdk/src/lib/Api.ts
  2. 7
      packages/nocodb/src/schema/swagger.json

2
packages/nocodb-sdk/src/lib/Api.ts

@ -1716,7 +1716,7 @@ export interface PluginReqType {
export interface PluginTestReqType { export interface PluginTestReqType {
/** Plugin Title */ /** Plugin Title */
title: string; title: string;
/** Plugin Input */ /** Plugin Input as JSON string */
input: string; input: string;
} }

7
packages/nocodb/src/schema/swagger.json

@ -12728,9 +12728,16 @@
"description": "Plugin Title" "description": "Plugin Title"
}, },
"input": { "input": {
"oneOf": [
{
"type": "string", "type": "string",
"description": "Plugin Input as JSON string"
},
{
"description": "Plugin Input" "description": "Plugin Input"
} }
]
}
}, },
"required": ["title", "input"] "required": ["title", "input"]
}, },

Loading…
Cancel
Save