mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Telemetry Schema Validation] Allow null
on string
(#163499)
This commit is contained in:
parent
1d9f76bc56
commit
263c534429
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ function valueSchemaToConfigSchema(value: TelemetrySchemaValue): Type<unknown> {
|
|||
case 'keyword':
|
||||
case 'text':
|
||||
case 'date':
|
||||
return schema.string();
|
||||
// Some plugins return `null` when there is no value to report
|
||||
return schema.oneOf([schema.string(), schema.literal(null)]);
|
||||
case 'byte':
|
||||
case 'double':
|
||||
case 'float':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue