relax color rule validation (#67759)

This commit is contained in:
Joe Reuter 2020-06-03 15:15:30 +02:00 committed by GitHub
parent f8759d4571
commit 884704d847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,7 @@ const backgroundColorRulesItems = schema.object({
id: stringOptionalNullable,
background_color: stringOptionalNullable,
color: stringOptionalNullable,
operator: stringOptionalNullable,
});
const gaugeColorRulesItems = schema.object({
@ -73,7 +74,7 @@ const gaugeColorRulesItems = schema.object({
text: stringOptionalNullable,
id: stringOptionalNullable,
operator: stringOptionalNullable,
value: schema.number(),
value: schema.maybe(schema.nullable(schema.number())),
});
const metricsItems = schema.object({
field: stringOptionalNullable,