Scheduling infrastructure for absolutely everyone.
fix: event type jsonschema or znull
Agusti Fernandez Pardob237d71b2b53
diff --git a/lib/validations/shared/jsonSchema.ts b/lib/validations/shared/jsonSchema.tsindex bfc7ae1f2b9..826f0b6250b 100644--- a/lib/validations/shared/jsonSchema.ts+++ b/lib/validations/shared/jsonSchema.ts@@ -5,5 +5,5 @@ type Literal = boolean | number | string;type Json = Literal | { [key: string]: Json } | Json[];const literalSchema = z.union([z.string(), z.number(), z.boolean()]);export const jsonSchema: z.ZodSchema<Json> = z.lazy(() =>- z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)])+ z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)]).or(z.null()));diff --git a/pages/api/hooks/[id].ts b/pages/api/hooks/[id].tsindex dbdfc1a17e6..32a81e7b12a 100644--- a/pages/api/hooks/[id].ts+++ b/pages/api/hooks/[id].ts@@ -26,6 +26,7 @@ export async function WebhookById(* /hooks/{id}:* get:* summary: Find a webhook+ * operationId: getWebhookById* parameters:* - in: path* name: id@@ -64,6 +65,7 @@ export async function WebhookById(* /hooks/{id}:* patch:* summary: Edit an existing webhook+ * operationId: editWebhookById* parameters:* - in: path* name: id@@ -109,6 +111,7 @@ export async function WebhookById(* /hooks/{id}:* delete:* summary: Remove an existing hook+ * operationId: removeWebhookById* parameters:* - in: path* name: iddiff --git a/pages/api/hooks/index.ts b/pages/api/hooks/index.tsindex ccda5dcd760..0a81da7ec5a 100644--- a/pages/api/hooks/index.ts+++ b/pages/api/hooks/index.ts@@ -16,6 +16,7 @@ async function createOrlistAllWebhooks(* /hooks:* get:* summary: Find all webhooks+ * operationId: listWebhooks* tags:* - hooks* externalDocs:@@ -43,6 +44,7 @@ async function createOrlistAllWebhooks(* /hooks:* post:* summary: Creates a new webhook+ * operationId: addWebhook* tags:* - webhooks* externalDocs: