1 parent
0c184e6d0c
commit
466d356ad1
2 files changed
+5
-8
No files matched your search
@@ -27,9 +27,10 @@ export const createNotificationBodyValidation = z.discriminatedUnion("type", [
|
||||
z.object({
|
||||
notificationName: z.string().min(1, "Notification name is required"),
|
||||
type: z.literal("rocket_chat"),
|
||||
address: z
|
||||
.url({ message: "Please enter a valid Rocket.Chat webhook URL" })
|
||||
.refine((url) => /^https?:\/\//i.test(url), { message: "Rocket.Chat webhook URL must use HTTP or HTTPS" }),
|
||||
address: z.url({
|
||||
protocol: /^https?$/,
|
||||
message: "Please enter a valid Rocket.Chat webhook URL",
|
||||
}),
|
||||
}),
|
||||
// Slack notification
|
||||
z.object({
|
||||
|
||||
Reference in new issue
Block a user