From 01d5d4e24a50e4ccf4d05edbc4df302937d6f6e6 Mon Sep 17 00:00:00 2001 From: mihai-peteu Date: Wed, 4 Dec 2024 10:49:20 -0800 Subject: [PATCH] feat: use additionalProperties instead [MA-3442] --- .../src/types/dashboard-renderer-types.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/analytics/dashboard-renderer/src/types/dashboard-renderer-types.ts b/packages/analytics/dashboard-renderer/src/types/dashboard-renderer-types.ts index 23673d7918..9e7514122e 100644 --- a/packages/analytics/dashboard-renderer/src/types/dashboard-renderer-types.ts +++ b/packages/analytics/dashboard-renderer/src/types/dashboard-renderer-types.ts @@ -117,10 +117,9 @@ export const timeseriesChartSchema = { }, threshold: { type: 'object', - properties: Object.fromEntries( - exploreAggregations.map((key) => [key, { type: 'number' }]), - ), - additionalProperties: false, + additionalProperties: { + type: 'number', + }, }, chartDatasetColors: chartDatasetColorsSchema, syntheticsDataKey,