From ab9887035077d57f8df6bc48c7ddc9bf4a375f7b Mon Sep 17 00:00:00 2001 From: Owen Valentine Date: Thu, 16 Nov 2023 04:53:06 +0200 Subject: [PATCH] feat : Validate bark, ntfy, generic+ shortcut (#591) Former-commit-id: da22074ed34da7696b1281bd10c61f1dad2786f0 --- backend/internal/sys/validate/validate.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/internal/sys/validate/validate.go b/backend/internal/sys/validate/validate.go index a8a3a27..e10a646 100644 --- a/backend/internal/sys/validate/validate.go +++ b/backend/internal/sys/validate/validate.go @@ -13,6 +13,7 @@ func init() { err := validate.RegisterValidation("shoutrrr", func(fl validator.FieldLevel) bool { prefixes := [...]string{ + "bark://", "discord://", "smtp://", "gotify://", @@ -21,6 +22,7 @@ func init() { "join://", "mattermost://", "matrix://", + "ntfy://", "opsgenie://", "pushbullet://", "pushover://", @@ -30,6 +32,7 @@ func init() { "telegram://", "zulip://", "generic://", + "generic+", } str := fl.Field().String()