From 164f46e4c0f7a8a6002028da8e7482100e8c7039 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 10 Oct 2020 10:15:48 -0700 Subject: [PATCH] Fixed: Webhooks using lower case event types (in the future this could change) Closes #4010 --- .../Notifications/Webhook/WebhookEventType.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookEventType.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookEventType.cs index a82f0da2c..0c849834d 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookEventType.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookEventType.cs @@ -1,5 +1,11 @@ -namespace NzbDrone.Core.Notifications.Webhook +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Serialization; + +namespace NzbDrone.Core.Notifications.Webhook { + // TODO: In v4 this will likely be changed to the default camel case. + [JsonConverter(typeof(StringEnumConverter), converterParameters: typeof(DefaultNamingStrategy))] public enum WebhookEventType { Test,