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;
headers?: string;
condition?: boolean;
notification?: string;
notification?: string | object;
retries?: number;
retry_interval?: number;
timeout?: number;

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

@ -9728,8 +9728,8 @@
"description": "Unique ID"
},
"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": {
"enum": ["delete", "insert", "update"],
@ -9822,8 +9822,8 @@
"description": "Unique ID"
},
"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": {
"enum": ["delete", "insert", "update"],
@ -10058,7 +10058,7 @@
"description": "Model for ID",
"examples": ["string"],
"maxLength": 20,
"minLength": 1,
"minLength": 0,
"title": "ID Model",
"type": "string"
},

Loading…
Cancel
Save