From acf23b424919997eed6cdffd6d330a41e19fb3c3 Mon Sep 17 00:00:00 2001 From: Aapo Talvensaari Date: Fri, 21 Jan 2022 00:27:38 +0200 Subject: [PATCH] fix(datadog) default value for metrics specified twice ### Summary I found out that datadog schema specifies default for metrics in two levels. Once in config field level and second in metrics level. The config field level causes validation errors in schema loading but those errors are ignored by our loader for some reason. Still I think this is a bug and the default should not be there twice. --- kong/plugins/datadog/schema.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/kong/plugins/datadog/schema.lua b/kong/plugins/datadog/schema.lua index 8e3b7dfd8e37..b6d9f7eb9a59 100644 --- a/kong/plugins/datadog/schema.lua +++ b/kong/plugins/datadog/schema.lua @@ -72,7 +72,6 @@ return { { protocols = typedefs.protocols }, { config = { type = "record", - default = { metrics = DEFAULT_METRICS }, fields = { { host = typedefs.host({ default = "localhost" }), }, { port = typedefs.port({ default = 8125 }), },