diff --git a/packages/nocodb/src/lib/models/Hook.ts b/packages/nocodb/src/lib/models/Hook.ts index 7c32d09bbd..031521926e 100644 --- a/packages/nocodb/src/lib/models/Hook.ts +++ b/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; diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index 4acff4ffd1..9e5dcbed98 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/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" },