Skip to content

Commit 17a4bfd

Browse files
committed
Fix alert schema
1 parent 108463c commit 17a4bfd

File tree

2 files changed

+8
-237
lines changed

2 files changed

+8
-237
lines changed

.github/GITHUB_ACTIONS.md

Lines changed: 0 additions & 236 deletions
This file was deleted.

src/tools/alerts.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,14 @@ export const createAlertToolDefinition = {
6666
description: 'Optional filter key. For crashes: "App Version". For events: custom segment name. For rating: "Rating". For nps: "NPS scale". Set to null if no filter'
6767
},
6868
filterValue: {
69-
type: ['string', 'array', 'null'],
69+
oneOf: [
70+
{ type: "string" },
71+
{
72+
type: "array",
73+
items: { type: "string" }
74+
},
75+
{ type: "null" }
76+
],
7077
description: 'Optional filter value. For crashes: array of version strings (e.g. ["22:02:0"]). For rating: array of numbers 1-5. For nps: "detractor"/"passive"/"promoter". For events: string value. Set to null if no filter'
7178
},
7279
alertBy: {

0 commit comments

Comments
 (0)