From e317a659833439c816bef27753c66e4e5e7e240a Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Thu, 7 Feb 2019 22:15:03 +0100 Subject: [PATCH] fix: metric-schema for variant counts --- lib/routes/client-api/metrics-schema.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/routes/client-api/metrics-schema.js b/lib/routes/client-api/metrics-schema.js index 37b5811714..c446676841 100644 --- a/lib/routes/client-api/metrics-schema.js +++ b/lib/routes/client-api/metrics-schema.js @@ -14,10 +14,7 @@ const countSchema = joi .number() .min(0) .default(0), - variants: joi.object({ - arg: joi.string(), - value: joi.number().min(0), - }), + variants: joi.object().pattern(joi.string(), joi.number().min(0)), }); const clientMetricsSchema = joi