Skip to content

Commit

Permalink
relax color rule validation (elastic#67759)
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/plugins/vis_type_timeseries/server/routes/post_vis_schema.ts
  • Loading branch information
flash1293 committed Jun 3, 2020
1 parent b52db2c commit e4d187a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ const backgroundColorRulesItems = Joi.object({
id: stringOptionalNullable,
background_color: stringOptionalNullable,
color: stringOptionalNullable,
operator: stringOptionalNullable,
});

const gaugeColorRulesItems = Joi.object({
gauge: stringOptionalNullable,
text: stringOptionalNullable,
id: stringOptionalNullable,
operator: stringOptionalNullable,
value: Joi.number(),
value: numberOptional.allow(null),
});
const metricsItems = Joi.object({
field: stringOptionalNullable,
Expand Down

0 comments on commit e4d187a

Please sign in to comment.