Skip to content

Commit

Permalink
[Telemetry Schema Validation] Allow null on string
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 9, 2023
1 parent 4fc9906 commit a89b7ec
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 a89b7ec

Please sign in to comment.