Browse Source

fix(nocodb): type issues

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
3c42fa42f0
  1. 2
      packages/nocodb/src/lib/models/Hook.ts
  2. 10
      packages/nocodb/src/schema/swagger.json

2
packages/nocodb/src/lib/models/Hook.ts

@ -26,7 +26,7 @@ export default class Hook implements HookType {
url?: string; url?: string;
headers?: string; headers?: string;
condition?: boolean; condition?: boolean;
notification?: string; notification?: string | object;
retries?: number; retries?: number;
retry_interval?: number; retry_interval?: number;
timeout?: number; timeout?: number;

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

@ -9728,8 +9728,8 @@
"description": "Unique ID" "description": "Unique ID"
}, },
"notification": { "notification": {
"type": "string", "description": "Hook Notification including info such as type, payload, method, body, and etc",
"description": "Hook Notification including info such as type, payload, method, body, and etc" "type": ["object", "string"]
}, },
"operation": { "operation": {
"enum": ["delete", "insert", "update"], "enum": ["delete", "insert", "update"],
@ -9822,8 +9822,8 @@
"description": "Unique ID" "description": "Unique ID"
}, },
"notification": { "notification": {
"type": "string", "description": "Hook Notification including info such as type, payload, method, body, and etc",
"description": "Hook Notification including info such as type, payload, method, body, and etc" "type": ["object", "string"]
}, },
"operation": { "operation": {
"enum": ["delete", "insert", "update"], "enum": ["delete", "insert", "update"],
@ -10058,7 +10058,7 @@
"description": "Model for ID", "description": "Model for ID",
"examples": ["string"], "examples": ["string"],
"maxLength": 20, "maxLength": 20,
"minLength": 1, "minLength": 0,
"title": "ID Model", "title": "ID Model",
"type": "string" "type": "string"
}, },

Loading…
Cancel
Save