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. 11
      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;
} }

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

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

Loading…
Cancel
Save