Skip to content

Commit a9706f1

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

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

schemas/telemetry/_common-schema.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,24 @@
8686
"description": "Action properties",
8787
"required": ["id"],
8888
"properties": {
89-
"id": {
90-
"type": "string",
91-
"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}$"
89+
"properties": {
90+
"id": {
91+
"description": "UUID of the action",
92+
"readOnly": true,
93+
"oneOf": [
94+
{
95+
"type": "string",
96+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
97+
},
98+
{
99+
"type": "array",
100+
"items": {
101+
"type": "string",
102+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
103+
}
104+
}
105+
]
106+
}
93107
}
94108
}
95109
},

0 commit comments

Comments
 (0)