Skip to content

Commit

Permalink
[Telemetry Schema Validation] Allow null on string (#163499)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored Aug 10, 2023
1 parent 1d9f76b commit 263c534
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 263c534

Please sign in to comment.