diff --git a/src/plugins/vis_type_timeseries/server/routes/post_vis_schema.ts b/src/plugins/vis_type_timeseries/server/routes/post_vis_schema.ts index 17d125e039910..f98430ffe2cf3 100644 --- a/src/plugins/vis_type_timeseries/server/routes/post_vis_schema.ts +++ b/src/plugins/vis_type_timeseries/server/routes/post_vis_schema.ts @@ -50,6 +50,7 @@ const backgroundColorRulesItems = Joi.object({ id: stringOptionalNullable, background_color: stringOptionalNullable, color: stringOptionalNullable, + operator: stringOptionalNullable, }); const gaugeColorRulesItems = Joi.object({ @@ -57,7 +58,7 @@ const gaugeColorRulesItems = Joi.object({ text: stringOptionalNullable, id: stringOptionalNullable, operator: stringOptionalNullable, - value: Joi.number(), + value: numberOptional.allow(null), }); const metricsItems = Joi.object({ field: stringOptionalNullable,