From 130001790280ac450765fe173fa6af71aecbac4b Mon Sep 17 00:00:00 2001 From: Ahmed ElSayed Date: Mon, 24 May 2021 16:51:19 -0700 Subject: [PATCH] Fix DefaultValueHandling in sync triggers (#213) --- Kudu.Core/Functions/PatchSpec.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kudu.Core/Functions/PatchSpec.cs b/Kudu.Core/Functions/PatchSpec.cs index 111bba6e..d80f5df5 100644 --- a/Kudu.Core/Functions/PatchSpec.cs +++ b/Kudu.Core/Functions/PatchSpec.cs @@ -7,10 +7,10 @@ namespace Kudu.Core.Functions { public class PatchSpec { - [JsonProperty(PropertyName = "triggerOptions")] + [JsonProperty(PropertyName = "triggerOptions", DefaultValueHandling = DefaultValueHandling.Ignore)] public TriggerOptions TriggerOptions { get; set; } - [JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code", DefaultValueHandling = DefaultValueHandling.Ignore)] public CodeSpec Code { get; set; } } }