Skip to content

Commit daca1c2

Browse files
committed
Fix telemetry action id type
1 parent 1c483b1 commit daca1c2

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

lib/cjs/generated/telemetry.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ export interface CommonTelemetryProperties {
523523
/**
524524
* UUID of the action
525525
*/
526-
id: string;
526+
readonly id: string | string[];
527527
[k: string]: unknown;
528528
};
529529
/**

lib/esm/generated/telemetry.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ export interface CommonTelemetryProperties {
523523
/**
524524
* UUID of the action
525525
*/
526-
id: string;
526+
readonly id: string | string[];
527527
[k: string]: unknown;
528528
};
529529
/**

schemas/telemetry/_common-schema.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,21 @@
8787
"required": ["id"],
8888
"properties": {
8989
"id": {
90-
"type": "string",
9190
"description": "UUID of the action",
92-
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
91+
"readOnly": true,
92+
"oneOf": [
93+
{
94+
"type": "string",
95+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
96+
},
97+
{
98+
"type": "array",
99+
"items": {
100+
"type": "string",
101+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
102+
}
103+
}
104+
]
93105
}
94106
}
95107
},

0 commit comments

Comments
 (0)